Package mondrian.tui
Class XmlUtil.SaxErrorHandler
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static class
XmlUtil.SaxErrorHandler.ErrorInfo
-
Field Summary
Fields Modifier and Type Field Description 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
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(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)
-
-
-
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
-
-
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 interfaceErrorHandler
- Throws:
SAXException
-
error
public void error(SAXParseException exception) throws SAXException
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException exception) throws SAXException
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-
addError
protected void addError(XmlUtil.SaxErrorHandler.ErrorInfo ei)
-
getFirstError
public String getFirstError()
-
-