public class XmlValidationHandler extends org.xml.sax.helpers.DefaultHandler
| Constructor and Description |
|---|
XmlValidationHandler(boolean failOnValidationError)
see name
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException excp) |
void |
fatalError(SAXParseException excp) |
List<SAXParseException> |
getErrors() |
List<SAXParseException> |
getFatalErrors() |
List<SAXParseException> |
getWarnings() |
boolean |
isErrorParsing() |
void |
setErrorParsing(boolean error) |
void |
setErrors(List<SAXParseException> errors) |
void |
setFatalErrors(List<SAXParseException> fatalErrors) |
void |
setWarnings(List<SAXParseException> warnings) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
warning(SAXParseException excp) |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDeclpublic XmlValidationHandler(boolean failOnValidationError)
public void error(SAXParseException excp) throws SAXException
error in interface ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlerSAXExceptionErrorHandler.error(org.xml.sax.SAXParseException)public void fatalError(SAXParseException excp) throws SAXException
fatalError in interface ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlerSAXExceptionErrorHandler.fatalError(org.xml.sax.SAXParseException)public void warning(SAXParseException excp) throws SAXException
warning in interface ErrorHandlerwarning in class org.xml.sax.helpers.DefaultHandlerSAXExceptionErrorHandler.warning(org.xml.sax.SAXParseException)public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionContentHandler.startElement(String, String, String, Attributes)public boolean isErrorParsing()
public void setErrorParsing(boolean error)
error - The errorParsing to set.public List<SAXParseException> getErrors()
public void setErrors(List<SAXParseException> errors)
public List<SAXParseException> getFatalErrors()
public void setFatalErrors(List<SAXParseException> fatalErrors)
public List<SAXParseException> getWarnings()
public void setWarnings(List<SAXParseException> warnings)
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.