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 classValidationErrorHandler.ErrorRecordstatic classValidationErrorHandler.ErrorType
-
Constructor Summary
Constructors Constructor Description ValidationErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(SAXParseException exception)voidfatalError(SAXParseException exception)intgetErrorCount()List<ValidationErrorHandler.ErrorRecord>getErrors()intgetFatalCount()intgetWarningCount()voidsetContext(File context)voidwarning(SAXParseException exception)
-
-
-
Method Detail
-
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
-
getErrors
public List<ValidationErrorHandler.ErrorRecord> getErrors()
-
getWarningCount
public int getWarningCount()
-
getErrorCount
public int getErrorCount()
-
getFatalCount
public int getFatalCount()
-
setContext
public void setContext(File context)
-
-