org.kohsuke.validatelet
Interface Validatelet

All Superinterfaces:
org.xml.sax.ContentHandler

public interface Validatelet
extends org.xml.sax.ContentHandler

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.

Author:
Kohsuke Kawaguchi (kk@kohsuke.org)

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

setErrorHandler

public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
Sets the error handler, which will receive validation errors detected during the validation.


getErrorHandler

public org.xml.sax.ErrorHandler getErrorHandler()
Gets the error handler passed by the setErrorHandler method, or null if none was specified.