Implementation of Validator for W3C XML Schemas.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | CURRENT_ELEMENT_NODE
Support current-element-node property |
| private 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. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AttributePSVI | getAttributePSVI(int index)
Implements com. Provides |
| public AttributePSVI | getAttributePSVIByName(String uri, String localname)
Implements com. Provides |
| public ElementPSVI | getElementPSVI()
Implements com. Provides the post schema validation item for the current element information item. |
| public ErrorHandler | getErrorHandler()
Implements abstract javax. Gets the current |
| public boolean | getFeature(String name)
Overrides javax. Look up the value of a feature flag. |
| public Object | getProperty(String name)
Overrides javax. Look up the value of a property. |
| public LSResourceResolver | getResourceResolver()
Implements abstract javax. Gets the current |
| public void | reset()
Implements abstract javax. Reset this |
| public void | setErrorHandler(ErrorHandler errorHandler)
Implements abstract javax. Sets the |
| public void | setFeature(String name, boolean value)
Overrides javax. Set the value of a feature flag. |
| public void | setProperty(String name, Object object)
Overrides javax. Set the value of a property. |
| public void | setResourceResolver(LSResourceResolver resourceResolver)
Implements abstract javax. Sets the |
| public void | validate(Source source, Result result)
Implements abstract javax. Validates the specified input and send the augmented validation result to the specified output. |
| CURRENT_ELEMENT_NODE | back to summary |
|---|---|
| private static final String CURRENT_ELEMENT_NODE Support current-element-node property | |
| fComponentManager | back to summary |
|---|---|
| private 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. | |
| ValidatorImpl | back to summary |
|---|---|
| public ValidatorImpl(XSGrammarPoolContainer grammarContainer) | |
| getAttributePSVI | back to summary |
|---|---|
| public AttributePSVI getAttributePSVI(int index) Implements com. Doc from com. Provides
| |
| getAttributePSVIByName | back to summary |
|---|---|
| public AttributePSVI getAttributePSVIByName(String uri, String localname) Implements com. Doc from com. Provides
| |
| getElementPSVI | back to summary |
|---|---|
| public ElementPSVI getElementPSVI() Implements com. Doc from com. 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
| |||||||||||||||||||||||||||||||