Note
There is an initial support for DOM revalidation with XML Schema as a grammar. The tree might not be validated correctly if entityReferences, CDATA sections are present in the tree. The PSVI information is not exposed, normalized data (including element default content is not available).
| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| public static final RuntimeException | abort
If the user stops the process, this exception will be thrown. |
| protected static final boolean | DEBUG
Debug namespace fix up algorithm |
| protected static final boolean | DEBUG_EVENTS
Debug document handler events |
| protected static final boolean | DEBUG_ND
Debug normalize document |
| public static final XMLString | EMPTY_STRING
Empty string to pass to the validator. |
| private boolean | |
| protected final ArrayList | fAttributeList
list of attributes |
| protected final DOMNormalizer. | |
| private final QName | |
| protected DOMConfigurationImpl | |
| protected Node | fCurrentNode
for setting the PSVI |
| protected CoreDocumentImpl | |
| private final DOMErrorImpl | |
| protected DOMErrorHandler | fErrorHandler
error handler. |
| protected final NamespaceContext | fLocalNSBinder
Stores all namespace bindings on the current element |
| protected final DOMLocatorImpl | fLocator
DOM Locator - for namespace fixup algorithm |
| protected final NamespaceContext | fNamespaceContext
The namespace context of this document: stores namespaces in scope |
| protected boolean | |
| pack-priv final XMLString | |
| protected boolean | |
| protected final QName | |
| protected SymbolTable | fSymbolTable
symbol table |
| protected RevalidationHandler | fValidationHandler
Validation handler represents validator instance. |
| protected static final String | PREFIX
prefix added by namespace fixup algorithm should follow a pattern "NS" + index |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | addNamespaceDecl(String prefix, String uri, ElementImpl element)
Adds a namespace attribute or replaces the value of existing namespace attribute with the given prefix and value for URI. |
| public void | characters(XMLString
The content. text, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public void | comment(XMLString
The text in the comment. text, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public void | doctypeDecl(String
The name of the root element. rootElement, String The public identifier if an external DTD or null
if the external DTD is specified using SYSTEM. publicId, String The system identifier if an external DTD, null
otherwise. systemId, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public void | emptyElement(QName
The name of the element. element, XMLAttributes The element attributes. attributes, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public void | endCDATA(Augmentations
Additional information that may include infoset augmentations augs)Implements org. |
| public void | endDocument(Augmentations
Additional information that may include infoset augmentations augs)Implements org. |
| public void | endElement(QName
The name of the element. element, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public void | endGeneralEntity(String
The name of the entity. name, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| protected final void | |
| public XMLDocumentSource | getDocumentSource()
Implements org. |
| public void | ignorableWhitespace(XMLString
The ignorable whitespace. text, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public static final void | isAttrValueWF(DOMErrorHandler errorHandler, DOMErrorImpl error, DOMLocatorImpl locator, NamedNodeMap attributes, Attr a, String value, boolean xml11Version)
NON-DOM: check if attribute value is well-formed |
| public static final void | isCDataWF(DOMErrorHandler errorHandler, DOMErrorImpl error, DOMLocatorImpl locator, String datavalue, boolean
= true if XML 1.1 isXML11Version)Check if CDATA section is well-formed |
| public static final void | isCommentWF(DOMErrorHandler errorHandler, DOMErrorImpl error, DOMLocatorImpl locator, String datavalue, boolean
= true if XML 1.1 isXML11Version)NON-DOM: check if value of the comment is well-formed |
| public static final void | isXMLCharWF(DOMErrorHandler errorHandler, DOMErrorImpl error, DOMLocatorImpl locator, String datavalue, boolean
= true if XML 1.1 isXML11Version)NON-DOM: check for valid XML characters as per the XML version |
| protected final void | |
| pack-priv final String | |
| protected void | |
| protected Node | Returns: the normalized NodeModified node or null. If node is returned, we need
to normalize again starting on the node returned. node)This method acts as if the document was going through a save and load cycle, putting the document in a "normal" form. |
| private void | |
| public void | processingInstruction(String
The target. target, XMLString The data or null if none specified. data, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public static final void | reportDOMError(DOMErrorHandler errorHandler, DOMErrorImpl error, DOMLocatorImpl locator, String message, short severity, String type)
Reports a DOM error to the user handler. |
| public void | setDocumentSource(XMLDocumentSource source)
Implements org. |
| public void | startCDATA(Augmentations
Additional information that may include infoset augmentations augs)Implements org. |
| public void | startDocument(XMLLocator
The document locator, or null if the document
location cannot be reported during the parsing
of this document. However, it is strongly
recommended that a locator be supplied that can
at least report the system identifier of the
document. locator, 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 entities or a document entity that is
parsed from a java.io.Reader). encoding, NamespaceContext The namespace context in effect at the
start of this document.
This object represents the current context.
Implementors of this class are responsible
for copying the namespace bindings from the
the current context (and its parent contexts)
if that information is important. namespaceContext, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public void | startElement(QName
The name of the element. element, XMLAttributes The element attributes. attributes, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public void | startGeneralEntity(String
The name of the general 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 entities or a document entity that is
parsed from a java.io.Reader). encoding, Augmentations Additional information that may include infoset augmentations augs)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 augs)Implements org. |
| protected final void | |
| public void | xmlDecl(String
The XML version. version, String The IANA encoding name of the document, or null if
not specified. encoding, String The standalone value, or null if not specified. standalone, Augmentations Additional information that may include infoset augmentations augs)Implements org. |