| Modifier and Type | Field and Description |
|---|---|
| protected XMLDTDScanner | fDTDScanner
fDTDScanner |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | attributeDecl(String
The name of the element that this attribute
is associated with. elementName, String The name of the attribute. attributeName, String The attribute type. This value will be one of
the following: "CDATA", "ENTITY", "ENTITIES",
"ENUMERATION", "ID", "IDREF", "IDREFS",
"NMTOKEN", "NMTOKENS", or "NOTATION". type, String[] If the type has the value "ENUMERATION", this
array holds the allowed attribute values;
otherwise, this array is null. enumeration, String The attribute default type. This value will be
one of the following: "#FIXED", "#IMPLIED",
"#REQUIRED", or null. defaultType, XMLString The attribute default value, or null if no
default value is specified. defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augmentations)Implements com. An attribute declaration. |
| public void | childrenElement(String
The name of the referenced element. elementName)A referenced element in a children content model. |
| public void | |
| public void | childrenOccurrence(short
The occurrence count for the last children element
or children group. occurrence)The occurrence count for a child in a children content model. |
| public void | childrenSeparator(short
The type of children separator. separator)The separator between choices or sequences of a children content model. |
| public void | |
| public void | comment(XMLString
The text in the comment. text, Augmentations augmentations)Implements com. A comment. |
| public void | elementDecl(String
The name of the element. name, String The element content model. contentModel, Augmentations augmentations)Implements com. An element declaration. |
| public void | endAttlist(Augmentations augmentations)
Implements com. The end of an attribute list. |
| public void | endConditional(Augmentations augmentations)
Implements com. The end of a conditional section. |
| public void | |
| public void | endDTD(Augmentations augmentations)
Implements com. The end of the DTD. |
| public void | endEntity(String
The name of the entity. name, Augmentations augmentations)This method notifies the end of an entity. |
| public void | endExternalSubset(Augmentations augmentations)
Implements com. The end of the external subset. |
| public void | externalEntityDecl(String
The name of the entity. Parameter entity names start
with '%', whereas the name of a general entity is just
the entity name. name, XMLResourceIdentifier An object containing all location information
pertinent to this entity. identifier, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements com. An external entity declaration. |
| public DTDGrammar | |
| public void | internalEntityDecl(String
The name of the entity. Parameter entity names start with
'%', whereas the name of a general entity is just the
entity name. name, XMLString The value of the entity. text, XMLString The non-normalized value of the entity. This
value contains the same sequence of characters that was in
the internal entity declaration, without any entity
references expanded. nonNormalizedText, Augmentations augmentations)Implements com. An internal entity declaration. |
| public void | mixedElement(String
The name of the referenced element. elementName)A referenced element in a mixed content model. |
| public void | notationDecl(String
The name of the notation. name, XMLResourceIdentifier An object containing all location information
pertinent to this notation. identifier, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements com. A notation declaration |
| public void | processingInstruction(String
The target. target, XMLString The data or null if none specified. data, Augmentations augmentations)Implements com. A processing instruction. |
| public void | startAttlist(String
The name of the element that this attribute
list is associated with. elementName, Augmentations augmentations)Implements com. The start of an attribute list. |
| public void | startConditional(short
The type of the conditional section. This value will
either be CONDITIONAL_INCLUDE or CONDITIONAL_IGNORE. type, Augmentations augmentations)Implements com. The start of a conditional section. |
| public void | startContentModel(String
The name of the element. elementName, short The content model type. type)The start of a content model. |
| public void | startDTD(XMLLocator locator, Augmentations augmentations)
Implements com. The start of the DTD. |
| public void | startEntity(String
The name of the entity. name, String The public identifier of the entity if the entity
is external, null otherwise. publicId, String The system identifier of the entity if the entity
is external, null otherwise. systemId, String The auto-detected IANA encoding name of the entity
stream. This value will be null in those situations
where the entity encoding is not auto-detected (e.g.
internal parameter entities). encoding)This method notifies of the start of an entity. |
| public void | startExternalSubset(XMLResourceIdentifier identifier, Augmentations augmentations)
Implements com. The start of the external subset. |
| public void | |
| public void | unparsedEntityDecl(String
The name of the entity. name, XMLResourceIdentifier An object containing all location information
pertinent to this entity. identifier, String The name of the notation. notation, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements com. An unparsed entity declaration. |
| fDTDScanner | back to summary |
|---|---|
| protected XMLDTDScanner fDTDScanner fDTDScanner | |
| DTDParser | back to summary |
|---|---|
| public DTDParser(SymbolTable symbolTable) | |
| attributeDecl | back to summary |
|---|---|
| public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augmentations) throws XNIException Implements com. An attribute declaration.
| |
| childrenElement | back to summary |
|---|---|
| public void childrenElement(String elementName) throws XNIException A referenced element in a children content model.
| |
| childrenEndGroup | back to summary |
|---|---|
| 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. | |
| childrenOccurrence | back to summary |
|---|---|
| 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.
| |
| childrenSeparator | back to summary |
|---|---|
| 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.
| |
| childrenStartGroup | back to summary |
|---|---|
| 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.
| |
| comment | back to summary |
|---|---|
| public void comment(XMLString text, Augmentations augmentations) throws XNIException Implements com. A comment.
| |
| elementDecl | back to summary |
|---|---|
| public void elementDecl(String name, String contentModel, Augmentations augmentations) throws XNIException Implements com. An element declaration.
| |
| endAttlist | back to summary |
|---|---|
| public void endAttlist(Augmentations augmentations) throws XNIException Implements com. The end of an attribute list.
| |
| endConditional | back to summary |
|---|---|
| public void endConditional(Augmentations augmentations) throws XNIException Implements com. The end of a conditional section.
| |
| endContentModel | back to summary |
|---|---|
| public void endContentModel() throws XNIException The end of a content model.
| |
| endDTD | back to summary |
|---|---|
| public void endDTD(Augmentations augmentations) throws XNIException Implements com. The end of the DTD.
| |
| endEntity | back to summary |
|---|---|
| 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.
| |
| endExternalSubset | back to summary |
|---|---|
| public void endExternalSubset(Augmentations augmentations) throws XNIException Implements com. The end of the external subset.
| |
| externalEntityDecl | back to summary |
|---|---|
| public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException Implements com. An external entity declaration.
| |
| getDTDGrammar | back to summary |
|---|---|
| public DTDGrammar getDTDGrammar() getDTDGrammar
| |
| internalEntityDecl | back to summary |
|---|---|
| public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augmentations) throws XNIException Implements com. An internal entity declaration.
| |
| mixedElement | back to summary |
|---|---|
| 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.
| |
| notationDecl | back to summary |
|---|---|
| public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException Implements com. A notation declaration
| |
| processingInstruction | back to summary |
|---|---|
| public void processingInstruction(String target, XMLString data, Augmentations augmentations) throws XNIException Implements com. 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.
| |
| startAttlist | back to summary |
|---|---|
| public void startAttlist(String elementName, Augmentations augmentations) throws XNIException Implements com. The start of an attribute list.
| |
| startConditional | back to summary |
|---|---|
| public void startConditional(short type, Augmentations augmentations) throws XNIException Implements com. The start of a conditional section.
| |
| startContentModel | back to summary |
|---|---|
| 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.
| |
| startDTD | back to summary |
|---|---|
| public void startDTD(XMLLocator locator, Augmentations augmentations) throws XNIException Implements com. The start of the DTD.
| |
| startEntity | back to summary |
|---|---|
| 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.
| |
| startExternalSubset | back to summary |
|---|---|
| public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException Implements com. The start of the external subset.
| |
| textDecl | back to summary |
|---|---|
| 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.
| |
| unparsedEntityDecl | back to summary |
|---|---|
| public void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augmentations) throws XNIException Implements com. An unparsed entity declaration.
| |