wxtutils
Class validationErrorHandler

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended bywxtutils.validationErrorHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class validationErrorHandler
extends org.xml.sax.helpers.DefaultHandler


Constructor Summary
validationErrorHandler(reporter rep)
          Creates a new instance of ValidationErrorHandler
 
Method Summary
 void endDocument()
          Receive notification of the end of the document.
 void error(org.xml.sax.SAXParseException e)
          Receive notification of a recoverable parser error.
 void fatalError(org.xml.sax.SAXParseException e)
          Report a fatal XML parsing error.
 void startDocument()
          Receive notification of the beginning of the document.
 void warning(org.xml.sax.SAXParseException e)
          Receive notification of a parser warning.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

validationErrorHandler

public validationErrorHandler(reporter rep)
Creates a new instance of ValidationErrorHandler

Method Detail

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
Description copied from class: org.xml.sax.helpers.DefaultHandler
Report a fatal XML parsing error.

The default implementation throws a SAXParseException. Application writers may override this method in a subclass if they need to take specific actions for each fatal error (such as collecting all of the errors into a single report): in any case, the application must stop all regular processing when this method is invoked, since the document is no longer reliable, and the parser may no longer report parsing events.

Parameters:
e - The error information encoded as an exception.
See Also:
ErrorHandler.fatalError(org.xml.sax.SAXParseException), SAXParseException

error

public void error(org.xml.sax.SAXParseException e)
Description copied from class: org.xml.sax.helpers.DefaultHandler
Receive notification of a recoverable parser error.

The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each error, such as inserting the message in a log file or printing it to the console.

Parameters:
e - The warning information encoded as an exception.
See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException), SAXParseException

warning

public void warning(org.xml.sax.SAXParseException e)
Description copied from class: org.xml.sax.helpers.DefaultHandler
Receive notification of a parser warning.

The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each warning, such as inserting the message in a log file or printing it to the console.

Parameters:
e - The warning information encoded as an exception.
See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException), SAXParseException

startDocument

public void startDocument()
Description copied from class: org.xml.sax.helpers.DefaultHandler
Receive notification of the beginning of the document.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file).

See Also:
ContentHandler.startDocument()

endDocument

public void endDocument()
Description copied from class: org.xml.sax.helpers.DefaultHandler
Receive notification of the end of the document.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of a document (such as finalising a tree or closing an output file).

See Also:
ContentHandler.endDocument()