Package edu.isi.pegasus.planner.parser
Class XMLErrorHandler
- java.lang.Object
-
- edu.isi.pegasus.planner.parser.XMLErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class XMLErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandlerThis class handles the errors which occur while enforcing validation against the XML Schema. Same as the VDLErrorHandler.- Author:
- Karan Vahi, Gaurang Mehta $Revision$
-
-
Field Summary
Fields Modifier and Type Field Description private LogManagermLoggerThe handle to the logging object that is used to log the messages.
-
Constructor Summary
Constructors Constructor Description XMLErrorHandler()The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(org.xml.sax.SAXParseException e)Logs the error messages which SAX parser generates while validating the XML file against an XML SchemavoidfatalError(org.xml.sax.SAXParseException e)Logs the the fatal messages which SAX parser generates while validating the XML file against an XML Schemavoidwarning(org.xml.sax.SAXParseException e)Logs the warning messages in the SAX parser generates while validating the XML file against an XML Schema.
-
-
-
Field Detail
-
mLogger
private LogManager mLogger
The handle to the logging object that is used to log the messages.
-
-
Method Detail
-
warning
public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXExceptionLogs the warning messages in the SAX parser generates while validating the XML file against an XML Schema.- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler- Parameters:
e- the execption that is being caught.- Throws:
org.xml.sax.SAXException
-
error
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXExceptionLogs the error messages which SAX parser generates while validating the XML file against an XML Schema- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler- Parameters:
e- the exception that is being caught.- Throws:
org.xml.sax.SAXException
-
fatalError
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXExceptionLogs the the fatal messages which SAX parser generates while validating the XML file against an XML Schema- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Parameters:
e- the exception that is being caught- Throws:
org.xml.sax.SAXException
-
-