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 classXmlUtil.SaxErrorHandler.ErrorInfo
-
Field Summary
Fields Modifier and Type Field Description static StringERROR_STRINGstatic StringFATAL_ERROR_STRINGstatic shortSEVERITY_ERRORstatic shortSEVERITY_FATAL_ERRORstatic shortSEVERITY_WARNINGstatic StringWARNING_STRING
-
Constructor Summary
Constructors Constructor Description SaxErrorHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddError(XmlUtil.SaxErrorHandler.ErrorInfo ei)voiderror(SAXParseException exception)voidfatalError(SAXParseException exception)static StringformatErrorInfo(XmlUtil.SaxErrorHandler.ErrorInfo ei)static StringformatErrorInfos(XmlUtil.SaxErrorHandler saxEH)List<XmlUtil.SaxErrorHandler.ErrorInfo>getErrors()StringgetFirstError()booleanhasErrors()voidprintErrorInfos(PrintStream out)voidwarning(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:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
public void error(SAXParseException exception) throws SAXException
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException exception) throws SAXException
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
addError
protected void addError(XmlUtil.SaxErrorHandler.ErrorInfo ei)
-
getFirstError
public String getFirstError()
-
-