Package com.adobe.epubcheck.xml.handlers
Class ReportingErrorHandler
- java.lang.Object
-
- com.adobe.epubcheck.xml.handlers.ReportingErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class ReportingErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandler
-
-
Field Summary
Fields Modifier and Type Field Description private ValidationContextcontextprivate booleannormativeprivate Reportreport
-
Constructor Summary
Constructors Constructor Description ReportingErrorHandler(ValidationContext context)ReportingErrorHandler(ValidationContext context, boolean normative)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(org.xml.sax.SAXParseException ex)voidfatalError(org.xml.sax.SAXParseException ex)voidwarning(org.xml.sax.SAXParseException ex)
-
-
-
Field Detail
-
context
private final ValidationContext context
-
report
private final Report report
-
normative
private final boolean normative
-
-
Constructor Detail
-
ReportingErrorHandler
public ReportingErrorHandler(ValidationContext context)
-
ReportingErrorHandler
public ReportingErrorHandler(ValidationContext context, boolean normative)
-
-
Method Detail
-
warning
public void warning(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler- Throws:
org.xml.sax.SAXException
-
error
public void error(org.xml.sax.SAXParseException ex) 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 ex) throws org.xml.sax.SAXException- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Throws:
org.xml.sax.SAXException
-
-