javax.xml.validation

Class 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 ErrorHandlergetErrorHandler()
booleangetFeature(String name)
ObjectgetProperty(String name)
abstract LSResourceResolvergetResourceResolver()
abstract voidreset()
Reset this validator to its original state.
abstract voidsetErrorHandler(ErrorHandler errorHandler)
voidsetFeature(String name, boolean value)
voidsetProperty(String name, Object value)
abstract voidsetResourceResolver(LSResourceResolver resourceResolver)
voidvalidate(Source source)
Validate the specified input.
abstract voidvalidate(Source source, Result result)
Validate the specified input.

Constructor Detail

Validator

protected Validator()

Method Detail

getErrorHandler

public abstract ErrorHandler getErrorHandler()

getFeature

public boolean getFeature(String name)

getProperty

public Object getProperty(String name)

getResourceResolver

public abstract LSResourceResolver getResourceResolver()

reset

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

setErrorHandler

public abstract void setErrorHandler(ErrorHandler errorHandler)

setFeature

public void setFeature(String name, boolean value)

setProperty

public void setProperty(String name, Object value)

setResourceResolver

public abstract void setResourceResolver(LSResourceResolver resourceResolver)

validate

public void validate(Source source)
Validate the specified input.

Parameters: source the document to validate

validate

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

Parameters: source the document to validate result the PSVI document to output