- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- io.github.astrapi69.xml.parser.ValidatorHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
public class ValidatorHandler extends org.xml.sax.helpers.DefaultHandlerThe classValidatorHandler.
-
-
Constructor Summary
Constructors Constructor Description ValidatorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(org.xml.sax.SAXParseException exception)voidfatalError(org.xml.sax.SAXParseException exception)org.xml.sax.SAXParseExceptiongetSaxParseException()booleanisValid()Checks if is validation error.booleanisValidationError()voidsetSaxParseException(org.xml.sax.SAXParseException saxParseException)voidsetValidationError(boolean validationError)voidwarning(org.xml.sax.SAXParseException exception)
-
-
-
Method Detail
-
error
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler- Overrides:
errorin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
fatalError
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Overrides:
fatalErrorin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
getSaxParseException
public org.xml.sax.SAXParseException getSaxParseException()
-
setSaxParseException
public void setSaxParseException(org.xml.sax.SAXParseException saxParseException)
-
isValid
public boolean isValid()
Checks if is validation error.- Returns:
- true, if is validation error
-
isValidationError
public boolean isValidationError()
-
setValidationError
public void setValidationError(boolean validationError)
-
warning
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler- Overrides:
warningin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
-