com.thaiopensource.relaxng.jarv
Class VerifierHandlerImpl

java.lang.Object
  extended by com.thaiopensource.relaxng.parse.sax.DtdContext
      extended by com.thaiopensource.relaxng.impl.PatternValidator
          extended by com.thaiopensource.relaxng.jarv.VerifierHandlerImpl
All Implemented Interfaces:
Validator, org.iso_relax.verifier.VerifierHandler, ValidationContext, ContentHandler, DTDHandler

 class VerifierHandlerImpl
extends PatternValidator
implements org.iso_relax.verifier.VerifierHandler


Field Summary
private  CountingErrorHandler ceh
           
private  boolean complete
           
 
Constructor Summary
VerifierHandlerImpl(Pattern pattern, ValidatorPatternBuilder builder, CountingErrorHandler ceh)
           
 
Method Summary
 void endDocument()
           
 boolean isValid()
           
 void reset()
          Cleans up after validating a document.
(package private)  void setErrorHandler(ErrorHandler eh)
           
 
Methods inherited from class com.thaiopensource.relaxng.impl.PatternValidator
addDatatypeError, characters, endElement, endPrefixMapping, getBaseUri, getContentHandler, getDTDHandler, ignorableWhitespace, processingInstruction, resolveNamespacePrefix, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from class com.thaiopensource.relaxng.parse.sax.DtdContext
clearDtdContext, isNotation, isUnparsedEntity, notationDecl, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from interface org.xml.sax.DTDHandler
notationDecl, unparsedEntityDecl
 

Field Detail

complete

private boolean complete

ceh

private final CountingErrorHandler ceh
Constructor Detail

VerifierHandlerImpl

VerifierHandlerImpl(Pattern pattern,
                    ValidatorPatternBuilder builder,
                    CountingErrorHandler ceh)
Method Detail

endDocument

public void endDocument()
Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class PatternValidator

isValid

public boolean isValid()
                throws IllegalStateException
Specified by:
isValid in interface org.iso_relax.verifier.VerifierHandler
Throws:
IllegalStateException

setErrorHandler

void setErrorHandler(ErrorHandler eh)

reset

public void reset()
Description copied from interface: Validator
Cleans up after validating a document. After completing validation of a document, reset must be called. After calling reset(), another document may be validated. Calling this method may create new ContentHandler and DTDHandler objects or may simply reinitialize the state of the existing objects.

Specified by:
reset in interface Validator
Overrides:
reset in class PatternValidator