javax.xml.validation
Class Validator

java.lang.Object
  extended by javax.xml.validation.Validator

public abstract class Validator
extends Object

A processor that validates a document against a schema.

Since:
1.3

Constructor Summary
protected Validator()
           
 
Method Summary
abstract  ErrorHandler getErrorHandler()
           
 boolean getFeature(String name)
           
 Object getProperty(String name)
           
abstract  LSResourceResolver getResourceResolver()
           
abstract  void reset()
          Reset this validator to its original state.
abstract  void setErrorHandler(ErrorHandler errorHandler)
           
 void setFeature(String name, boolean value)
           
 void setProperty(String name, Object value)
           
abstract  void setResourceResolver(LSResourceResolver resourceResolver)
           
 void validate(Source source)
          Validate the specified input.
abstract  void validate(Source source, Result result)
          Validate the specified input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator

protected Validator()
Method Detail

reset

public abstract void reset()
Reset this validator to its original state.


validate

public void validate(Source source)
              throws SAXException,
                     IOException
Validate the specified input.

Parameters:
source - the document to validate
Throws:
SAXException
IOException

validate

public abstract void validate(Source source,
                              Result result)
                       throws SAXException,
                              IOException
Validate the specified input.

Parameters:
source - the document to validate
result - the PSVI document to output
Throws:
SAXException
IOException

setErrorHandler

public abstract void setErrorHandler(ErrorHandler errorHandler)

getErrorHandler

public abstract ErrorHandler getErrorHandler()

setResourceResolver

public abstract void setResourceResolver(LSResourceResolver resourceResolver)

getResourceResolver

public abstract LSResourceResolver getResourceResolver()

getFeature

public boolean getFeature(String name)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException
Throws:
SAXNotRecognizedException
SAXNotSupportedException

setFeature

public void setFeature(String name,
                       boolean value)
                throws SAXNotRecognizedException,
                       SAXNotSupportedException
Throws:
SAXNotRecognizedException
SAXNotSupportedException

getProperty

public Object getProperty(String name)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException
Throws:
SAXNotRecognizedException
SAXNotSupportedException

setProperty

public void setProperty(String name,
                        Object value)
                 throws SAXNotRecognizedException,
                        SAXNotSupportedException
Throws:
SAXNotRecognizedException
SAXNotSupportedException