edu.isi.pegasus.planner.parser
Class XMLErrorHandler

java.lang.Object
  extended by edu.isi.pegasus.planner.parser.XMLErrorHandler
All Implemented Interfaces:
ErrorHandler

public class XMLErrorHandler
extends Object
implements 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: 2575 $

Field Summary
private  LogManager mLogger
          The handle to the logging object that is used to log the messages.
 
Constructor Summary
XMLErrorHandler()
          The default constructor.
 
Method Summary
 void error(SAXParseException e)
          Logs the error messages which SAX parser generates while validating the XML file against an XML Schema
 void fatalError(SAXParseException e)
          Logs the the fatal messages which SAX parser generates while validating the XML file against an XML Schema
 void warning(SAXParseException e)
          Logs the warning messages in the SAX parser generates while validating the XML file against an XML Schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mLogger

private LogManager mLogger
The handle to the logging object that is used to log the messages.

Constructor Detail

XMLErrorHandler

public XMLErrorHandler()
The default constructor. Initializes the logger object.

Method Detail

warning

public void warning(SAXParseException e)
             throws SAXException
Logs the warning messages in the SAX parser generates while validating the XML file against an XML Schema.

Specified by:
warning in interface ErrorHandler
Parameters:
e - the execption that is being caught.
Throws:
SAXException

error

public void error(SAXParseException e)
           throws SAXException
Logs the error messages which SAX parser generates while validating the XML file against an XML Schema

Specified by:
error in interface ErrorHandler
Parameters:
e - the exception that is being caught.
Throws:
SAXException

fatalError

public void fatalError(SAXParseException e)
                throws SAXException
Logs the the fatal messages which SAX parser generates while validating the XML file against an XML Schema

Specified by:
fatalError in interface ErrorHandler
Parameters:
e - the exception that is being caught
Throws:
SAXException


Copyright © 2011 The University of Southern California. All Rights Reserved.