Implementation of Validator for W3C XML Schemas.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | CURRENT_ELEMENT_NODE
Property identifier: Current element node. |
| private final XMLSchemaValidatorComponentManager | fComponentManager
Component manager. |
| private boolean | fConfigurationChanged
Flag for tracking whether features/properties changed since last reset. |
| private DOMValidatorHelper | fDOMValidatorHelper
DOM validator helper. |
| private boolean | fErrorHandlerChanged
Flag for tracking whether the error handler changed since last reset. |
| private boolean | fResourceResolverChanged
Flag for tracking whether the resource resolver changed since last reset. |
| private ValidatorHandlerImpl | fSAXValidatorHelper
SAX validator helper. |
| private StAXValidatorHelper | fStAXValidatorHelper
StAX validator helper. |
| private StreamValidatorHelper | fStreamValidatorHelper
Stream validator helper. |
| private static final String | JAXP_SOURCE_RESULT_FEATURE_PREFIX
JAXP Source/Result feature prefix. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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 ElementPSVI | getElementPSVI()
Implements org. |
| public ErrorHandler | getErrorHandler()
Implements abstract javax. ErrorHandler set to this Validator.
|
| public boolean | getFeature(String
The feature name, which is a non-null fully-qualified URI. name)Overrides javax. |
| 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 Validator.
|
| public void | reset()
Implements abstract javax. Validator to its original configuration.
|
| 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 validate method invocation.
|
| 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. |
| 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 | validate(Source
XML to be validated. Must be an XML document or
XML element and must not be null. For backwards compatibility,
the results of attempting to validate anything other than
a document or element are implementation-dependent.
Implementations must either recognize and process the input
or throw an IllegalArgumentException. source, Result The result)Result object that receives (possibly augmented)
XML. This parameter can be null if the caller is not interested
in it.
Note that when a DOMResult is used,
a validator might just pass the same DOM node from
DOMSource to DOMResult
(in which case source.getNode()==result.getNode()),
it might copy the entire DOM tree, or it might alter the
node given by the source.Implements abstract javax. |
| CURRENT_ELEMENT_NODE | back to summary |
|---|---|
| private static final String CURRENT_ELEMENT_NODE Property identifier: Current element node. | |
| fComponentManager | back to summary |
|---|---|
| private final XMLSchemaValidatorComponentManager fComponentManager Component manager. | |
| fConfigurationChanged | back to summary |
|---|---|
| private boolean fConfigurationChanged Flag for tracking whether features/properties changed since last reset. | |
| fDOMValidatorHelper | back to summary |
|---|---|
| private DOMValidatorHelper fDOMValidatorHelper DOM validator helper. | |
| fErrorHandlerChanged | back to summary |
|---|---|
| private boolean fErrorHandlerChanged Flag for tracking whether the error handler changed since last reset. | |
| fResourceResolverChanged | back to summary |
|---|---|
| private boolean fResourceResolverChanged Flag for tracking whether the resource resolver changed since last reset. | |
| fSAXValidatorHelper | back to summary |
|---|---|
| private ValidatorHandlerImpl fSAXValidatorHelper SAX validator helper. | |
| fStAXValidatorHelper | back to summary |
|---|---|
| private StAXValidatorHelper fStAXValidatorHelper StAX validator helper. | |
| fStreamValidatorHelper | back to summary |
|---|---|
| private StreamValidatorHelper fStreamValidatorHelper Stream validator helper. | |
| JAXP_SOURCE_RESULT_FEATURE_PREFIX | back to summary |
|---|---|
| private static final String JAXP_SOURCE_RESULT_FEATURE_PREFIX JAXP Source/Result feature prefix. | |
| ValidatorImpl | back to summary |
|---|---|
| public ValidatorImpl(XSGrammarPoolContainer grammarContainer) | |
| getAttributePSVI | back to summary |
|---|---|
| public AttributePSVI getAttributePSVI(int index) Implements org. Doc from org. Provides
| |
| getAttributePSVIByName | back to summary |
|---|---|
| public AttributePSVI getAttributePSVIByName(String uri, String localname) Implements org. Doc from org. Provides
| |
| getElementPSVI | back to summary |
|---|---|
| public ElementPSVI getElementPSVI() Implements org. Doc from org. Provides the post schema validation item for the current element
information item. The method must be called by an application while
in the scope of the methods which report the start and end of an
element. For example, for SAX the method must be called within the
scope of the document handler's
| |
| getErrorHandler | back to summary |
|---|---|
| public ErrorHandler getErrorHandler() Implements abstract javax. Doc from javax. Gets the current
| |
| getFeature | back to summary |
|---|---|
| public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException Overrides javax. Doc from javax. Look up the value of a feature flag. The feature name is any fully-qualified URI. It is
possible for a Implementors are free (and encouraged) to invent their own features, using names built on their own URIs.
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException Overrides javax. Doc from javax. Look up the value of a property. The property name is any fully-qualified URI. It is
possible for a
Implementors are free (and encouraged) to invent their own properties, using names built on their own URIs.
| |
| getResourceResolver | back to summary |
|---|---|
| public LSResourceResolver getResourceResolver() Implements abstract javax. Doc from javax. Gets the current
| |
| reset | back to summary |
|---|---|
| public void reset() Implements abstract javax. Doc from javax. Reset this
The reset | |
| setErrorHandler | back to summary |
|---|---|
| public void setErrorHandler(ErrorHandler errorHandler) Implements abstract javax. Doc from javax. Sets the
Error handler can be used to customize the error handling process
during a validation. When an
The error handler can abort further validation immediately
by throwing
If any
When the class DraconianErrorHandler implements
When a new
| |
| setFeature | back to summary |
|---|---|
| public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException Overrides javax. Doc from javax. Set the value of a feature flag.
Feature can be used to control the way a The feature name is any fully-qualified URI. It is
possible for a
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSupportedException Overrides javax. Doc from javax. Set the value of a property. The property name is any fully-qualified URI. It is
possible for a
All implementations that implement JAXP 1.5 or newer are required to
support the
| |
| setResourceResolver | back to summary |
|---|---|
| public void setResourceResolver(LSResourceResolver resourceResolver) Implements abstract javax. Doc from javax. Sets the
When the class DumbLSResourceResolver implements
If a
When a new
| |
| validate | back to summary | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public void validate(Source source, Result result) throws SAXException, IOException Implements abstract javax. Doc from javax. Validates the specified input and send the augmented validation result to the specified output. This method places the following restrictions on the types of
the
To validate one Errors found during the validation is sent to the specified
If a document is valid, or if a document contains some errors
but none of them were fatal and the
| |||||||||||||||||||||||||||||||