|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectjavax.xml.validation.Validator
com.saxonica.jaxp.ValidatorImpl
public class ValidatorImpl
This class in the Saxon implementation of the JAXP 1.3 Validator "interface" (which is actually defined as an abstract class). It is used to validate a source document against a schema.
| Nested Class Summary | |
|---|---|
static class |
ValidatorImpl.ErrorListenerWrappingErrorHandler
A JAXP ErrorListener that wraps a SAX ErrorHandler |
| Constructor Summary | |
|---|---|
ValidatorImpl(PipelineConfiguration pipe,
PreparedSchema schema)
Create the Validator |
|
| Method Summary | |
|---|---|
Configuration |
getConfiguration()
Get the underlying Saxon Configuration object |
org.xml.sax.ErrorHandler |
getErrorHandler()
|
java.lang.Object |
getProperty(java.lang.String name)
Look up the value of a property. |
org.w3c.dom.ls.LSResourceResolver |
getResourceResolver()
Gets the current LSResourceResolver |
void |
reset()
|
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
|
void |
setProperty(java.lang.String name,
java.lang.Object object)
Set the value of a property. |
void |
setResourceResolver(org.w3c.dom.ls.LSResourceResolver resourceResolver)
Sets the LSResourceResolver to customize
resource resolution while in a validation episode. |
void |
validate(javax.xml.transform.Source source,
javax.xml.transform.Result result)
|
| Methods inherited from class javax.xml.validation.Validator |
|---|
getFeature, setFeature, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidatorImpl(PipelineConfiguration pipe,
PreparedSchema schema)
pipe - the pipeline configurationschema - the schema against which validation takes place| Method Detail |
|---|
public void reset()
reset in class javax.xml.validation.Validator
public void validate(javax.xml.transform.Source source,
javax.xml.transform.Result result)
throws org.xml.sax.SAXException,
java.io.IOException
validate in class javax.xml.validation.Validatororg.xml.sax.SAXException
java.io.IOExceptionpublic void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
setErrorHandler in class javax.xml.validation.Validatorpublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler in class javax.xml.validation.Validatorpublic void setResourceResolver(org.w3c.dom.ls.LSResourceResolver resourceResolver)
LSResourceResolver to customize
resource resolution while in a validation episode.
setResourceResolver in class javax.xml.validation.ValidatorresourceResolver - A new resource resolver to be set. This parameter can be null.public org.w3c.dom.ls.LSResourceResolver getResourceResolver()
LSResourceResolver
getResourceResolver in class javax.xml.validation.ValidatorsetResourceResolver(org.w3c.dom.ls.LSResourceResolver) method, or null
if that method has never been calledpublic Configuration getConfiguration()
public java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
The property name is any fully-qualified URI. It is
possible for a Validator to recognize a property name but
temporarily be unable to return its value.
Some property values may be available only in specific
contexts, such as before, during, or after a validation.
Validators are not required to recognize any specific
property names.
In the Saxon implementation, the property names that are recognized are the same as the
attribute names recognised by a TransformerFactory. These are listed as constant fields
in the class FeatureKeys
getProperty in class javax.xml.validation.Validatorname - The property name, which is a non-null fully-qualified URI.
org.xml.sax.SAXNotRecognizedException - If the property
value can't be assigned or retrieved.
org.xml.sax.SAXNotSupportedException - When the
XMLReader recognizes the property name but
cannot determine its value at this time.
java.lang.NullPointerException - When the name parameter is null.setProperty(String, Object)
public void setProperty(java.lang.String name,
java.lang.Object object)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
The property name is any fully-qualified URI. It is
possible for a Validator to recognize a property name but
to be unable to change the current value.
Some property values may be immutable or mutable only
in specific contexts, such as before, during, or after
a validation.
In the Saxon implementation, the property names that are recognized are the same as the
attribute names recognised by a TransformerFactory. These are listed as constant fields
in the class FeatureKeys
setProperty in class javax.xml.validation.Validatorname - The property name, which is a non-null fully-qualified URI.object - The requested value for the property.
org.xml.sax.SAXNotRecognizedException - If the property
value can't be assigned or retrieved.
org.xml.sax.SAXNotSupportedException - When the
Validator recognizes the property name but
cannot set the requested value.
java.lang.NullPointerException - When the name parameter is null.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||