Package com.sun.msv.driver.textui
Class ReportErrorHandler
- java.lang.Object
-
- com.sun.msv.driver.textui.ReportErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class ReportErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandlerErrorHandlerthat reports all errors and warnings. SAX parse errors are also handled.
-
-
Field Summary
Fields Modifier and Type Field Description private intcounterbooleanhadErrorstatic java.lang.StringMSG_ERRORstatic java.lang.StringMSG_FATALstatic java.lang.StringMSG_TOO_MANY_ERRORSstatic java.lang.StringMSG_WARNING
-
Constructor Summary
Constructors Constructor Description ReportErrorHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcountCheck(org.xml.sax.SAXParseException e)voiderror(org.xml.sax.SAXParseException e)voidfatalError(org.xml.sax.SAXParseException e)protected static voidprintSAXParseException(org.xml.sax.SAXParseException spe, java.lang.String prop)voidwarning(org.xml.sax.SAXParseException e)
-
-
-
Field Detail
-
counter
private int counter
-
hadError
public boolean hadError
-
MSG_TOO_MANY_ERRORS
public static final java.lang.String MSG_TOO_MANY_ERRORS
- See Also:
- Constant Field Values
-
MSG_ERROR
public static final java.lang.String MSG_ERROR
- See Also:
- Constant Field Values
-
MSG_WARNING
public static final java.lang.String MSG_WARNING
- See Also:
- Constant Field Values
-
MSG_FATAL
public static final java.lang.String MSG_FATAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
error
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler- Throws:
org.xml.sax.SAXException
-
fatalError
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Throws:
org.xml.sax.SAXException
-
warning
public void warning(org.xml.sax.SAXParseException e)
- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler
-
printSAXParseException
protected static void printSAXParseException(org.xml.sax.SAXParseException spe, java.lang.String prop)
-
countCheck
private void countCheck(org.xml.sax.SAXParseException e) throws ValidationUnrecoverableException- Throws:
ValidationUnrecoverableException
-
-