mondrian.tui
Class XmlUtil.SAXErrorHandler

java.lang.Object
  extended by mondrian.tui.XmlUtil.SAXErrorHandler
All Implemented Interfaces:
ErrorHandler
Enclosing class:
XmlUtil

public static class XmlUtil.SAXErrorHandler
extends Object
implements ErrorHandler

Error handler plus helper methods.

 

Nested Class Summary
static class XmlUtil.SAXErrorHandler.ErrorInfo
           
 
Field Summary
static String ERROR_STRING
           
static String FATAL_ERROR_STRING
           
static short SEVERITY_ERROR
           
static short SEVERITY_FATAL_ERROR
           
static short SEVERITY_WARNING
           
static String WARNING_STRING
           
 
Constructor Summary
XmlUtil.SAXErrorHandler()
           
 
Method Summary
protected  void addError(XmlUtil.SAXErrorHandler.ErrorInfo ei)
           
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
static String formatErrorInfo(XmlUtil.SAXErrorHandler.ErrorInfo ei)
           
static String formatErrorInfos(XmlUtil.SAXErrorHandler saxEH)
           
 List<XmlUtil.SAXErrorHandler.ErrorInfo> getErrors()
           
 String getFirstError()
           
 boolean hasErrors()
           
 void printErrorInfos(PrintStream out)
           
 void warning(SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WARNING_STRING

public static final String WARNING_STRING
See Also:
Constant Field Values

ERROR_STRING

public static final String ERROR_STRING
See Also:
Constant Field Values

FATAL_ERROR_STRING

public static final String FATAL_ERROR_STRING
See Also:
Constant Field Values

SEVERITY_WARNING

public static final short SEVERITY_WARNING
See Also:
Constant Field Values

SEVERITY_ERROR

public static final short SEVERITY_ERROR
See Also:
Constant Field Values

SEVERITY_FATAL_ERROR

public static final short SEVERITY_FATAL_ERROR
See Also:
Constant Field Values
Constructor Detail

XmlUtil.SAXErrorHandler

public XmlUtil.SAXErrorHandler()
Method Detail

printErrorInfos

public void printErrorInfos(PrintStream out)

formatErrorInfos

public static String formatErrorInfos(XmlUtil.SAXErrorHandler saxEH)

formatErrorInfo

public static String formatErrorInfo(XmlUtil.SAXErrorHandler.ErrorInfo ei)

getErrors

public List<XmlUtil.SAXErrorHandler.ErrorInfo> getErrors()

hasErrors

public boolean hasErrors()

warning

public void warning(SAXParseException exception)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Throws:
SAXException

error

public void error(SAXParseException exception)
           throws SAXException
Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException

addError

protected void addError(XmlUtil.SAXErrorHandler.ErrorInfo ei)

getFirstError

public String getFirstError()

SourceForge.net_Logo