Package com.mycila.xmltool
Class XMLErrorHandler
java.lang.Object
com.mycila.xmltool.XMLErrorHandler
- All Implemented Interfaces:
ValidationResult,ErrorListener,ErrorHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(TransformerException exception) voiderror(SAXParseException exception) voidfatalError(TransformerException exception) voidfatalError(SAXParseException exception) String[]String[]booleanhasError()booleanprivate voidprivate voidlogWarning(Throwable cause) private String[]voidwarning(TransformerException exception) voidwarning(SAXParseException exception)
-
Field Details
-
errors
-
warnings
-
throwExceptionOnError
private final boolean throwExceptionOnError
-
-
Constructor Details
-
XMLErrorHandler
XMLErrorHandler() -
XMLErrorHandler
XMLErrorHandler(boolean throwExceptionOnError)
-
-
Method Details
-
logError
-
logWarning
-
error
- Specified by:
errorin interfaceErrorListener- Throws:
TransformerException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorListener- Throws:
TransformerException
-
warning
- Specified by:
warningin interfaceErrorListener- Throws:
TransformerException
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
getErrors
- Specified by:
getErrorsin interfaceValidationResult
-
getWarnings
- Specified by:
getWarningsin interfaceValidationResult
-
getErrorMessages
- Specified by:
getErrorMessagesin interfaceValidationResult
-
getWarningMessages
- Specified by:
getWarningMessagesin interfaceValidationResult
-
hasError
public boolean hasError()- Specified by:
hasErrorin interfaceValidationResult
-
hasWarning
public boolean hasWarning()- Specified by:
hasWarningin interfaceValidationResult
-
messages
-