|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Validator implemented as a SAX ContentHandler
.
By calling SAX callback methods, this object performs
a validation.
Detected errors will be sent to the specified error handler.
If no error handler is specified, it throws a SAXParseException
.
Calling the startDocument method will reset a validatelet and make it ready to accept a new document. Thus a client can re-use the same instance of Validatelet many times.
Method Summary | |
org.xml.sax.ErrorHandler |
getErrorHandler()
Gets the error handler passed by the setErrorHandler method, or null if none was specified. |
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
Sets the error handler, which will receive validation errors detected during the validation. |
Methods inherited from interface org.xml.sax.ContentHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Method Detail |
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
public org.xml.sax.ErrorHandler getErrorHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |