Home » Xerces-J-src.2.9.1 » org.apache.xerces » parsers » [javadoc | source]
org.apache.xerces.parsers
abstract public class: DTDParser [javadoc | source]
java.lang.Object
   org.apache.xerces.parsers.XMLParser
      org.apache.xerces.parsers.XMLGrammarParser
         org.apache.xerces.parsers.DTDParser

All Implemented Interfaces:
    XMLDTDContentModelHandler, XMLDTDHandler

Field Summary
protected  XMLDTDScanner fDTDScanner    fDTDScanner 
Fields inherited from org.apache.xerces.parsers.XMLGrammarParser:
fDatatypeValidatorFactory
Fields inherited from org.apache.xerces.parsers.XMLParser:
ENTITY_RESOLVER,  ERROR_HANDLER,  fConfiguration
Constructor:
 public DTDParser(SymbolTable symbolTable) 
    Parameters:
    symbolTable -
Method from org.apache.xerces.parsers.DTDParser Summary:
attributeDecl,   childrenElement,   childrenEndGroup,   childrenOccurrence,   childrenSeparator,   childrenStartGroup,   comment,   elementDecl,   endAttlist,   endConditional,   endContentModel,   endDTD,   endEntity,   endExternalSubset,   externalEntityDecl,   getDTDGrammar,   internalEntityDecl,   mixedElement,   notationDecl,   processingInstruction,   startAttlist,   startConditional,   startContentModel,   startDTD,   startEntity,   startExternalSubset,   textDecl,   unparsedEntityDecl
Methods from org.apache.xerces.parsers.XMLParser:
parse,   reset
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xerces.parsers.DTDParser Detail:
 public  void attributeDecl(String elementName,
    String attributeName,
    String type,
    String[] enumeration,
    String defaultType,
    XMLString defaultValue,
    XMLString nonNormalizedDefaultValue,
    Augmentations augmentations) throws XNIException 
    An attribute declaration.
 public  void childrenElement(String elementName) throws XNIException 
    A referenced element in a children content model.
 public  void childrenEndGroup() throws XNIException 
    The end of a children group.

    Note: This method is only called after a call to the startContentModel method where the type is TYPE_CHILDREN.

 public  void childrenOccurrence(short occurrence) throws XNIException 
    The occurrence count for a child in a children content model.

    Note: This method is only called after a call to the startContentModel method where the type is TYPE_CHILDREN.

 public  void childrenSeparator(short separator) throws XNIException 
    The separator between choices or sequences of a children content model.

    Note: This method is only called after a call to the startContentModel method where the type is TYPE_CHILDREN.

 public  void childrenStartGroup() throws XNIException 
    The start of a children group.

    Note: This method is only called after a call to the startContentModel method where the type is TYPE_CHILDREN.

    Note: Children groups can be nested and have associated occurrence counts.

 public  void comment(XMLString text,
    Augmentations augmentations) throws XNIException 
    A comment.
 public  void elementDecl(String name,
    String contentModel,
    Augmentations augmentations) throws XNIException 
    An element declaration.
 public  void endAttlist(Augmentations augmentations) throws XNIException 
    The end of an attribute list.
 public  void endConditional(Augmentations augmentations) throws XNIException 
    The end of a conditional section.
 public  void endContentModel() throws XNIException 
    The end of a content model.
 public  void endDTD(Augmentations augmentations) throws XNIException 
    The end of the DTD.
 public  void endEntity(String name,
    Augmentations augmentations) throws XNIException 
    This method notifies the end of an entity. The DTD has the pseudo-name of "[dtd]" and parameter entity names start with '%'.

    Note: Since the DTD is an entity, the handler will be notified of the end of the DTD entity by calling the endEntity method with the entity name "[dtd]" after calling the endDTD method.

 public  void endExternalSubset(Augmentations augmentations) throws XNIException 
    The end of the external subset.
 public  void externalEntityDecl(String name,
    XMLResourceIdentifier identifier,
    Augmentations augmentations) throws XNIException 
    An external entity declaration.
 public DTDGrammar getDTDGrammar() 
    getDTDGrammar
 public  void internalEntityDecl(String name,
    XMLString text,
    XMLString nonNormalizedText,
    Augmentations augmentations) throws XNIException 
    An internal entity declaration.
 public  void mixedElement(String elementName) throws XNIException 
    A referenced element in a mixed content model. If the mixed content model only allows text content, then this method will not be called for that model. However, if this method is called for a mixed content model, then the zero or more occurrence count is implied.

    Note: This method is only called after a call to the startContentModel method where the type is TYPE_MIXED.

 public  void notationDecl(String name,
    XMLResourceIdentifier identifier,
    Augmentations augmentations) throws XNIException 
    A notation declaration
 public  void processingInstruction(String target,
    XMLString data,
    Augmentations augmentations) throws XNIException 
    A processing instruction. Processing instructions consist of a target name and, optionally, text data. The data is only meaningful to the application.

    Typically, a processing instruction's data will contain a series of pseudo-attributes. These pseudo-attributes follow the form of element attributes but are not parsed or presented to the application as anything other than text. The application is responsible for parsing the data.

 public  void startAttlist(String elementName,
    Augmentations augmentations) throws XNIException 
    The start of an attribute list.
 public  void startConditional(short type,
    Augmentations augmentations) throws XNIException 
    The start of a conditional section.
 public  void startContentModel(String elementName,
    short type) throws XNIException 
    The start of a content model. Depending on the type of the content model, specific methods may be called between the call to the startContentModel method and the call to the endContentModel method.
 public  void startDTD(XMLLocator locator,
    Augmentations augmentations) throws XNIException 
    The start of the DTD.
 public  void startEntity(String name,
    String publicId,
    String systemId,
    String encoding) throws XNIException 
    This method notifies of the start of an entity. The DTD has the pseudo-name of "[dtd]" and parameter entity names start with '%'.

    Note: Since the DTD is an entity, the handler will be notified of the start of the DTD entity by calling the startEntity method with the entity name "[dtd]" before calling the startDTD method.

 public  void startExternalSubset(XMLResourceIdentifier identifier,
    Augmentations augmentations) throws XNIException 
    The start of the external subset.
 public  void textDecl(String version,
    String encoding) throws XNIException 
    Notifies of the presence of a TextDecl line in an entity. If present, this method will be called immediately following the startEntity call.

    Note: This method is only called for external parameter entities referenced in the DTD.

 public  void unparsedEntityDecl(String name,
    XMLResourceIdentifier identifier,
    String notation,
    Augmentations augmentations) throws XNIException 
    An unparsed entity declaration.