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.ErrorHandler
This 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 LogManager
mLogger
The 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 void
error(org.xml.sax.SAXParseException e)
Logs the error messages which SAX parser generates while validating the XML file against an XML Schemavoid
fatalError(org.xml.sax.SAXParseException e)
Logs the the fatal messages which SAX parser generates while validating the XML file against an XML Schemavoid
warning(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.SAXException
Logs the warning messages in the SAX parser generates while validating the XML file against an XML Schema.- Specified by:
warning
in 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.SAXException
Logs the error messages which SAX parser generates while validating the XML file against an XML Schema- Specified by:
error
in 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.SAXException
Logs the the fatal messages which SAX parser generates while validating the XML file against an XML Schema- Specified by:
fatalError
in interfaceorg.xml.sax.ErrorHandler
- Parameters:
e
- the exception that is being caught- Throws:
org.xml.sax.SAXException
-
-