Package org.codehaus.mojo.xml.validation
Class ValidationErrorHandler
- java.lang.Object
-
- org.codehaus.mojo.xml.validation.ValidationErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class ValidationErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ValidationErrorHandler.ErrorRecord
static class
ValidationErrorHandler.ErrorType
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
context
private int
errorCount
private java.util.List<ValidationErrorHandler.ErrorRecord>
errors
private int
fatalCount
private java.util.List<ValidationErrorHandler.ErrorRecord>
publicErrors
private int
warningCount
-
Constructor Summary
Constructors Constructor Description ValidationErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(org.xml.sax.SAXParseException exception)
void
fatalError(org.xml.sax.SAXParseException exception)
int
getErrorCount()
java.util.List<ValidationErrorHandler.ErrorRecord>
getErrors()
int
getFatalCount()
int
getWarningCount()
void
setContext(java.io.File context)
void
warning(org.xml.sax.SAXParseException exception)
-
-
-
Field Detail
-
errors
private final java.util.List<ValidationErrorHandler.ErrorRecord> errors
-
publicErrors
private final java.util.List<ValidationErrorHandler.ErrorRecord> publicErrors
-
warningCount
private int warningCount
-
errorCount
private int errorCount
-
fatalCount
private int fatalCount
-
context
private java.io.File context
-
-
Method Detail
-
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
-
getErrors
public java.util.List<ValidationErrorHandler.ErrorRecord> getErrors()
-
getWarningCount
public int getWarningCount()
-
getErrorCount
public int getErrorCount()
-
getFatalCount
public int getFatalCount()
-
setContext
public void setContext(java.io.File context)
-
-