Top Description Fields Constructors Methods
com.sun.msv.verifier.jarv

pack-priv Class VerifierImpl

extends VerifierImpl
Class Inheritance
Imports
org.iso_relax.verifier.VerifierConfigurationException, .VerifierHandler, org.xml.sax.ErrorHandler, .XMLReader, com.sun.msv.verifier.IVerifier

Verifier implementation.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private final IVerifier
Inherited from org.iso_relax.verifier.impl.VerifierImpl:
entityResolvererrorHandlerreader

Constructor Summary

AccessConstructor and Description
pack-priv
VerifierImpl(IVerifier verifier, XMLReader reader)

Method Summary

Modifier and TypeMethod and Description
public VerifierHandler
protected void
prepareXMLReader()

Overrides org.iso_relax.verifier.impl.VerifierImpl.prepareXMLReader.

Creates and sets a sole instance of XMLReader which will be used by this verifier.
public void
setErrorHandler(ErrorHandler
this object will receive errors/warning encountered during the validation.
handler
)

Overrides org.iso_relax.verifier.impl.VerifierImpl.setErrorHandler.

Implements org.iso_relax.verifier.Verifier.setErrorHandler.

Sets a ErrorHandler that receives validation errors/warnings.
Inherited from org.iso_relax.verifier.impl.VerifierImpl:
getPropertygetVerifierFilterisFeaturesetEntityResolversetFeaturesetPropertyverifyverifyverifyverify

Field Detail

verifierback to summary
private final IVerifier verifier

Constructor Detail

VerifierImplback to summary
pack-priv VerifierImpl(IVerifier verifier, XMLReader reader) throws VerifierConfigurationException

Method Detail

getVerifierHandlerback to summary
public VerifierHandler getVerifierHandler()

Implements abstract org.iso_relax.verifier.impl.VerifierImpl.getVerifierHandler.

Implements org.iso_relax.verifier.Verifier.getVerifierHandler.

Doc from org.iso_relax.verifier.Verifier.getVerifierHandler.

Gets a VerifierHandler.

you can use the returned VerifierHandler to validate documents through SAX.

Note that two different invocations of this method can return the same value; this method does NOT necessarily create a new VerifierHandler object.

prepareXMLReaderback to summary
protected void prepareXMLReader()

Overrides org.iso_relax.verifier.impl.VerifierImpl.prepareXMLReader.

Doc from org.iso_relax.verifier.impl.VerifierImpl.prepareXMLReader.

Creates and sets a sole instance of XMLReader which will be used by this verifier.

setErrorHandlerback to summary
public void setErrorHandler(ErrorHandler handler)

Overrides org.iso_relax.verifier.impl.VerifierImpl.setErrorHandler.

Implements org.iso_relax.verifier.Verifier.setErrorHandler.

Doc from org.iso_relax.verifier.Verifier.setErrorHandler.

Sets a ErrorHandler that receives validation errors/warnings.

If no error handler is set explicitly, a verifier implementation will not report any error/warning at all. However, the caller can still obtain the result of validation through the return value.

Conscious developers should always set an error handler explicitly as the default behavior has been changed several times.

Parameters
handler:ErrorHandler

this object will receive errors/warning encountered during the validation.