SMILA (incubation) API documentation

org.eclipse.smila.utils.xml
Class DOMErrorHandler

java.lang.Object
  extended by org.eclipse.smila.utils.xml.DOMErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class DOMErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Standard-DOMErrorHandler in AnyFinder. Only the error()-methods are implemented which throw an SAXParseException.


Constructor Summary
DOMErrorHandler()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException e)
          This method throws an SAXParseException to detect validation errors.
 void fatalError(org.xml.sax.SAXParseException e)
          This method throws an SAXParseException to detect wellformattedness-errors.
 void warning(org.xml.sax.SAXParseException e)
          This method does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMErrorHandler

public DOMErrorHandler()
Method Detail

error

public void error(org.xml.sax.SAXParseException e)
           throws org.xml.sax.SAXException
This method throws an SAXParseException to detect validation errors. The message-text is cuntructed as this:
 e.getMessage() + "\n\t\tPublicId:\t" + e.getPublicId() + "\n\t\tSystemId:\t" + e.getSystemId()
   + "\n\t\tLineNumber:\t" + e.getLineNumber() + "\n\t\tColumnNumber:\t" + e.getColumnNumber()
 

Specified by:
error in interface org.xml.sax.ErrorHandler
Parameters:
e - -
Throws:
org.xml.sax.SAXException - -
See Also:
in interface

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
                throws org.xml.sax.SAXException
This method throws an SAXParseException to detect wellformattedness-errors. The message-text is cuntructed as this:
 e.getMessage() + "\n\t\tPublicId:\t" + e.getPublicId() + "\n\t\tSystemId:\t" + e.getSystemId()
   + "\n\t\tLineNumber:\t" + e.getLineNumber() + "\n\t\tColumnNumber:\t" + e.getColumnNumber()
 

Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Parameters:
e - -
Throws:
org.xml.sax.SAXException - -

warning

public void warning(org.xml.sax.SAXParseException e)
This method does nothing.

Specified by:
warning in interface org.xml.sax.ErrorHandler
Parameters:
e - -

SMILA (incubation) API documentation