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