Implementation of ValidatorHandler for W3C XML Schemas and
also a validator helper for SAXSources.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | ERROR_REPORTER
Property identifier: error reporter. |
| private final AttributesProxy | fAttrAdapter
Deprecated
as a consequence of
AttributesProxy being deprecated.
|
| private final QName | |
| private final XMLAttributesImpl | |
| private final XMLSchemaValidatorComponentManager | fComponentManager
Component manager. |
| private ContentHandler | |
| private final QName | fElementQName
Fields for start element, end element and characters. |
| private final XMLErrorReporter | fErrorReporter
Error reporter. |
| private final NamespaceContext | fNamespaceContext
The namespace context of this document: stores namespaces in scope |
| private boolean | fNeedPushNSContext
Flag used to track whether the namespace context needs to be pushed. |
| private final ValidatorHandlerImpl. | fResolutionForwarder
SAX adapter for an LSResourceResolver. |
| private final SAXLocatorWrapper | fSAXLocatorWrapper
XML Locator wrapper for SAX. |
| private final XMLSchemaValidator | fSchemaValidator
Schema validator. |
| private boolean | fStringsInternalized
Flag used to track whether XML names and Namespace URIs have been internalized. |
| private final SymbolTable | fSymbolTable
Symbol table |
| private final XMLString | |
| private final ValidatorHandlerImpl. | fTypeInfoProvider
|
| private HashMap | fUnparsedEntities
Map for tracking unparsed entities. |
| private final ValidationManager | fValidationManager
Validation manager. |
| private static final String | LEXICAL_HANDLER
Property identifier: lexical handler. |
| private static final String | NAMESPACE_CONTEXT
Property identifier: namespace context. |
| private static final String | NAMESPACE_PREFIXES
Feature identifier: namespace prefixes. |
| private static final String | SCHEMA_VALIDATOR
Property identifier: XML Schema validator. |
| private static final String | SECURITY_MANAGER
Property identifier: security manager. |
| private static final String | STRING_INTERNING
Feature identifier: string interning. |
| private static final String | STRINGS_INTERNED
Feature identifier: strings interned. |
| private static final String | SYMBOL_TABLE
Property identifier: symbol table. |
| private static final String | VALIDATION_MANAGER
Property identifier: validation manager. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | characters(XMLString
The content. text, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public void | characters(char[]
the characters from the XML document ch, int the start position in the array start, int the number of characters to read from the array length)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 | endDocument()
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 | endElement(String
the Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed uri, String the local name (without prefix), or the
empty string if Namespace processing is not being
performed localName, String the qualified XML name (with prefix), or the
empty string if qualified names are not available qName)Implements org. |
| public void | endGeneralEntity(String
The name of the entity. name, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public void | endPrefixMapping(String
the prefix that was being mapped.
This is the empty string when a default mapping scope ends. prefix)Implements org. |
| private void | |
| private void | |
| private void | |
| private void | |
| public AttributePSVI | getAttributePSVI(int
The attribute index. index)Implements org. AttributePSVI given the index of an attribute
information item in the current element's attribute list.
|
| public AttributePSVI | getAttributePSVIByName(String
The namespace name of an attribute. uri, String The local name of an attribute. localname)Implements org. AttributePSVI given the namespace name and the
local name of an attribute information item in the current element's
attribute list.
|
| public ContentHandler | getContentHandler()
Implements abstract javax. ContentHandler which receives the
augmented validation result.
|
| public XMLDocumentSource | getDocumentSource()
Implements org. |
| public ElementPSVI | getElementPSVI()
Implements org. |
| public ErrorHandler | getErrorHandler()
Implements abstract javax. ErrorHandler set to this ValidatorHandler.
|
| public boolean | getFeature(String
The feature name, which is a non-null fully-qualified URI. name)
Look up the value of a feature flag.
|
| public Object | getProperty(String
The property name, which is a non-null fully-qualified URI. name)Overrides javax. |
| public LSResourceResolver | getResourceResolver()
Implements abstract javax. LSResourceResolver set to this ValidatorHandler.
|
| public TypeInfoProvider | getTypeInfoProvider()
Implements abstract javax. TypeInfoProvider implementation of this
ValidatorHandler.
|
| public void | ignorableWhitespace(XMLString
The ignorable whitespace. text, Augmentations Additional information that may include infoset augmentations augs)Implements org. |
| public void | ignorableWhitespace(char[]
the characters from the XML document ch, int the start position in the array start, int the number of characters to read from the array length)Implements org. |
| public boolean | isEntityDeclared(String name)
Implements org. |
| public boolean | isEntityUnparsed(String name)
Implements org. |
| public void | notationDecl(String
The notation name. name, String The notation's public identifier, or null if
none was given. publicId, String The notation's system identifier, or null if
none was given. systemId)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 augs)Implements org. |
| public void | processingInstruction(String
the processing instruction target target, String the processing instruction data, or null if
none was supplied. The data does not include any
whitespace separating it from the target data)Implements org. |
| public void | setContentHandler(ContentHandler
A receiver)ContentHandler or a null value.Implements abstract javax. ContentHandler which receives
the augmented validation result.
|
| public void | setDocumentLocator(Locator
an object that can return the location of
any SAX document event locator)Implements org. |
| public void | setDocumentSource(XMLDocumentSource source)
Implements org. |
| public void | setErrorHandler(ErrorHandler
A new error handler to be set. This parameter can be null. errorHandler)Implements abstract javax. ErrorHandler to receive errors encountered
during the validation.
|
| public void | setFeature(String
The feature name, which is a non-null fully-qualified URI. name, boolean The requested value of the feature (true or false). value)Overrides javax. Set a feature for this |
| public void | setProperty(String
The property name, which is a non-null fully-qualified URI. name, Object The requested value for the property. object)Overrides javax. |
| public void | setResourceResolver(LSResourceResolver
A new resource resolver to be set. This parameter can be null. resourceResolver)Implements abstract javax. LSResourceResolver to customize
resource resolution while in a validation episode.
|
| public void | skippedEntity(String
the name of the skipped entity. If it is a
parameter entity, the name will begin with '%', and if
it is the external DTD subset, it will be the string
"[dtd]" name)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 | startDocument()
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 | startElement(String
the Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed uri, String the local name (without prefix), or the
empty string if Namespace processing is not being
performed localName, String the qualified name (with prefix), or the
empty string if qualified names are not available qName, Attributes the attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object. The value of this object after
startElement returns is undefined atts)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 | startPrefixMapping(String
the Namespace prefix being declared.
An empty string is used for the default element namespace,
which has no prefix. prefix, String the Namespace URI the prefix is mapped to uri)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. |
| public void | unparsedEntityDecl(String
The unparsed entity's name. name, String The entity's public identifier, or null if none
was given. publicId, String The entity's system identifier. systemId, String The name of the associated notation. notationName)Implements org. |
| public void | validate(Source source, Result result)
Implements org. |
| 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. |