public class VerifierHandlerImpl extends org.xml.sax.helpers.DefaultHandler implements VerifierHandler
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
log |
Constructor and Description |
---|
VerifierHandlerImpl(SchemaImpl schema)
Creates the Verifier Handler.
|
VerifierHandlerImpl(SchemaImpl schema,
VerifierImpl verifier)
Creates the Verifier Handler.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Called when an element ends.
|
boolean |
isValid()
Checks if the document was valid.
|
void |
sendText() |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Sets the locator.
|
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
Sets the error handler
|
void |
startDocument()
Called when the document starts.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Called when an element starts.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public VerifierHandlerImpl(SchemaImpl schema, VerifierImpl verifier)
public VerifierHandlerImpl(SchemaImpl schema)
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void sendText() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public boolean isValid() throws java.lang.IllegalStateException
This method can be only called after this handler receives
the endDocument
event.
isValid
in interface VerifierHandler
java.lang.IllegalStateException
- If this method is called before the endDocument event is dispatched.