mondrian.tui
Class XmlUtil.SaxErrorHandler

java.lang.Object
  extended by mondrian.tui.XmlUtil.SaxErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler
Enclosing class:
XmlUtil

public static class XmlUtil.SaxErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Error handler plus helper methods.


Nested Class Summary
static class XmlUtil.SaxErrorHandler.ErrorInfo
           
 
Field Summary
static java.lang.String ERROR_STRING
           
static java.lang.String FATAL_ERROR_STRING
           
static short SEVERITY_ERROR
           
static short SEVERITY_FATAL_ERROR
           
static short SEVERITY_WARNING
           
static java.lang.String WARNING_STRING
           
 
Constructor Summary
XmlUtil.SaxErrorHandler()
           
 
Method Summary
protected  void addError(XmlUtil.SaxErrorHandler.ErrorInfo ei)
           
 void error(org.xml.sax.SAXParseException exception)
           
 void fatalError(org.xml.sax.SAXParseException exception)
           
static java.lang.String formatErrorInfo(XmlUtil.SaxErrorHandler.ErrorInfo ei)
           
static java.lang.String formatErrorInfos(XmlUtil.SaxErrorHandler saxEH)
           
 java.util.List<XmlUtil.SaxErrorHandler.ErrorInfo> getErrors()
           
 java.lang.String getFirstError()
           
 boolean hasErrors()
           
 void printErrorInfos(java.io.PrintStream out)
           
 void warning(org.xml.sax.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 java.lang.String WARNING_STRING
See Also:
Constant Field Values

ERROR_STRING

public static final java.lang.String ERROR_STRING
See Also:
Constant Field Values

FATAL_ERROR_STRING

public static final java.lang.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(java.io.PrintStream out)

formatErrorInfos

public static java.lang.String formatErrorInfos(XmlUtil.SaxErrorHandler saxEH)

formatErrorInfo

public static java.lang.String formatErrorInfo(XmlUtil.SaxErrorHandler.ErrorInfo ei)

getErrors

public java.util.List<XmlUtil.SaxErrorHandler.ErrorInfo> getErrors()

hasErrors

public boolean hasErrors()

warning

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

error

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

fatalError

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

addError

protected void addError(XmlUtil.SaxErrorHandler.ErrorInfo ei)

getFirstError

public java.lang.String getFirstError()

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads