Interface defines methods for starting and stopping validation against specific schemas, or validator instances, as well as method(s) for adding an optional custom problem handler.
| Modifier and Type | Method and Description |
|---|---|
| public ValidationProblemHandler | Returns: Previously set validation problem handler, if any; null if none was setHandler to install, if non null; if null, indicates that
the default (implementation-specific) handling should be used h)Method that application can call to define a custom handler for validation problems encountered during validation process. |
| public XMLValidator | Returns: Validator instance created from the schema that was removed, if one was in use; null if no such schema in use.Method that can be called by application to stop validating
output against a schema, for which |
| public XMLValidator | Returns: Validator instance found (ie. argumentvalidator)
if it was being used for validating current document; null if not.Method that can be called by application to stop validating output using specified validator. |
| public XMLValidator | Returns: Validator instance constructed, if validator was added, or null if a validator for the schema has already been constructed.Method that will construct a |
| setValidationProblemHandler | back to summary |
|---|---|
| public ValidationProblemHandler setValidationProblemHandler(ValidationProblemHandler h) Method that application can call to define a custom handler for validation problems encountered during validation process.
| |
| stopValidatingAgainst | back to summary |
|---|---|
| public XMLValidator stopValidatingAgainst(XMLValidationSchema schema) throws XMLStreamException Method that can be called by application to stop validating
output against a schema, for which
| |
| stopValidatingAgainst | back to summary |
|---|---|
| public XMLValidator stopValidatingAgainst(XMLValidator validator) throws XMLStreamException Method that can be called by application to stop validating
output using specified validator. The validator passed should be
an earlier return value for a call to Note the specified validator is compared for identity with validators in use, not for equality.
| |
| validateAgainst | back to summary |
|---|---|
| public XMLValidator validateAgainst(XMLValidationSchema schema) throws XMLStreamException Method that will construct a Note that while this method can be called at any point in output processing, validator instances are not required to be able to handle addition at other points than right before outputting the root element.
| |