This filter records which unparsed entities have been declared in the DTD and provides this information to a ValidationManager. Events are forwarded to the registered XMLDTDHandler without modification.
| Modifier and Type | Field and Description |
|---|---|
| private XMLDTDHandler | |
| private XMLDTDSource | fDTDSource
DTD source and handler. |
| private HashMap | fUnparsedEntities
Map for tracking unparsed entities. |
| private final ValidationManager | fValidationManager
Validation manager. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| 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" or
"NOTATION", 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 The attribute default value with no normalization
performed, or null if no default value is specified. nonNormalizedDefaultValue, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | comment(XMLString
The text in the comment. text, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | elementDecl(String
The name of the element. name, String The element content model. contentModel, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | endAttlist(Augmentations
Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | endConditional(Augmentations
Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | endDTD(Augmentations
Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | endExternalSubset(Augmentations
Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | endParameterEntity(String
The name of the parameter entity. name, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| 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 external entity. identifier, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public XMLDTDHandler | getDTDHandler()
Implements org. |
| public XMLDTDSource | |
| public void | ignoredCharacters(XMLString
The ignored text. text, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| 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 Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public boolean | isEntityDeclared(String name)
Implements org. |
| public boolean | isEntityUnparsed(String name)
Implements org. |
| 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 org. |
| public void | processingInstruction(String
The target. target, XMLString The data or null if none specified. data, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | |
| public void | setDTDHandler(XMLDTDHandler handler)
Implements org. |
| public void | |
| public void | startAttlist(String
The name of the element that this attribute
list is associated with. elementName, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | startConditional(short
The type of the conditional section. This value will
either be CONDITIONAL_INCLUDE or CONDITIONAL_IGNORE. type, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | startDTD(XMLLocator
The document locator, or null if the document
location cannot be reported during the parsing of
the document DTD. However, it is strongly
recommended that a locator be supplied that can
at least report the base system identifier of the
DTD. locator, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | startExternalSubset(XMLResourceIdentifier
The resource identifier. identifier, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | startParameterEntity(String
The name of the parameter entity. name, XMLResourceIdentifier The resource identifier. identifier, 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, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | textDecl(String
The XML version, or null if not specified. version, String The IANA encoding name of the entity. encoding, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| public void | unparsedEntityDecl(String
The name of the entity. name, XMLResourceIdentifier An object containing all location information
pertinent to this unparsed entity declaration. identifier, String The name of the notation. notation, Augmentations Additional information that may include infoset
augmentations. augmentations)Implements org. |
| fDTDHandler | back to summary |
|---|---|
| private XMLDTDHandler fDTDHandler | |
| fDTDSource | back to summary |
|---|---|
| private XMLDTDSource fDTDSource DTD source and handler. | |
| fUnparsedEntities | back to summary |
|---|---|
| private HashMap<K, V> fUnparsedEntities Map for tracking unparsed entities. | |
| fValidationManager | back to summary |
|---|---|
| private final ValidationManager fValidationManager Validation manager. | |
| UnparsedEntityHandler | back to summary |
|---|---|
| pack-priv UnparsedEntityHandler(ValidationManager manager) | |
| 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 org. Doc from org. An attribute declaration.
| |
| comment | back to summary |
|---|---|
| public void comment(XMLString text, Augmentations augmentations) throws XNIException Implements org. Doc from org. A comment.
| |
| elementDecl | back to summary |
|---|---|
| public void elementDecl(String name, String contentModel, Augmentations augmentations) throws XNIException Implements org. Doc from org. An element declaration.
| |
| endAttlist | back to summary |
|---|---|
| public void endAttlist(Augmentations augmentations) throws XNIException Implements org. Doc from org. The end of an attribute list.
| |
| endConditional | back to summary |
|---|---|
| public void endConditional(Augmentations augmentations) throws XNIException Implements org. Doc from org. The end of a conditional section.
| |
| endDTD | back to summary |
|---|---|
| public void endDTD(Augmentations augmentations) throws XNIException Implements org. Doc from org. The end of the DTD.
| |
| endExternalSubset | back to summary |
|---|---|
| public void endExternalSubset(Augmentations augmentations) throws XNIException Implements org. Doc from org. The end of the DTD external subset.
| |
| endParameterEntity | back to summary |
|---|---|
| public void endParameterEntity(String name, Augmentations augmentations) throws XNIException Implements org. Doc from org. This method notifies the end of a parameter entity. Parameter entity names begin with a '%' character.
| |
| externalEntityDecl | back to summary |
|---|---|
| public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException Implements org. Doc from org. An external entity declaration.
| |
| getDTDHandler | back to summary |
|---|---|
| public XMLDTDHandler getDTDHandler() Implements org. Doc from org. Returns the DTD handler. | |
| getDTDSource | back to summary |
|---|---|
| public XMLDTDSource getDTDSource() Implements org. | |
| ignoredCharacters | back to summary |
|---|---|
| public void ignoredCharacters(XMLString text, Augmentations augmentations) throws XNIException Implements org. Doc from org. Characters within an IGNORE conditional section.
| |
| internalEntityDecl | back to summary |
|---|---|
| public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augmentations) throws XNIException Implements org. Doc from org. An internal entity declaration.
| |
| isEntityDeclared | back to summary |
|---|---|
| public boolean isEntityDeclared(String name) Implements org. Doc from org. Query method to check if entity with this name was declared.
| |
| isEntityUnparsed | back to summary |
|---|---|
| public boolean isEntityUnparsed(String name) Implements org. Doc from org. Query method to check if entity is unparsed.
| |
| notationDecl | back to summary |
|---|---|
| public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException Implements org. Doc from org. A notation declaration
| |
| processingInstruction | back to summary |
|---|---|
| public void processingInstruction(String target, XMLString data, Augmentations augmentations) throws XNIException Implements org. Doc from org. 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.
| |
| reset | back to summary |
|---|---|
| public void reset() | |
| setDTDHandler | back to summary |
|---|---|
| public void setDTDHandler(XMLDTDHandler handler) Implements org. Doc from org. Sets the DTD handler. | |
| setDTDSource | back to summary |
|---|---|
| public void setDTDSource(XMLDTDSource source) Implements org. | |
| startAttlist | back to summary |
|---|---|
| public void startAttlist(String elementName, Augmentations augmentations) throws XNIException Implements org. Doc from org. The start of an attribute list.
| |
| startConditional | back to summary |
|---|---|
| public void startConditional(short type, Augmentations augmentations) throws XNIException Implements org. Doc from org. The start of a conditional section.
| |
| startDTD | back to summary |
|---|---|
| public void startDTD(XMLLocator locator, Augmentations augmentations) throws XNIException Implements org. Doc from org. The start of the DTD.
| |
| startExternalSubset | back to summary |
|---|---|
| public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException Implements org. Doc from org. The start of the DTD external subset.
| |
| startParameterEntity | back to summary |
|---|---|
| public void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augmentations) throws XNIException Implements org. Doc from org. This method notifies of the start of a parameter entity. The parameter entity name start with a '%' character.
| |
| textDecl | back to summary |
|---|---|
| public void textDecl(String version, String encoding, Augmentations augmentations) throws XNIException Implements org. Doc from org. 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 org. Doc from org. An unparsed entity declaration.
| |