Package mondrian.tui
Class XmlUtil.SaxErrorHandler
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static class
XmlUtil.SaxErrorHandler.ErrorInfo
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description SaxErrorHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-
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 interfaceorg.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 interfaceorg.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 interfaceorg.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException
-
addError
protected void addError(XmlUtil.SaxErrorHandler.ErrorInfo ei)
-
getFirstError
public java.lang.String getFirstError()
-
-