public class ValidatorHandler extends DefaultHandler2
This class is used by the parser to validate while parsing.
| Constructor and Description |
|---|
ValidatorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException e) |
EntityResolver |
getEntityResolver() |
List<Exception> |
getErrors() |
boolean |
isFailOnValidationError() |
InputSource |
resolveEntity(String publicId,
String systemId) |
InputSource |
resolveEntity(String name,
String publicId,
String baseURI,
String systemId) |
void |
setEntityResolver(EntityResolver entityResolver) |
void |
setFailOnValidationError(boolean failOnValidationError) |
void |
startDocument() |
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, startCDATA, startDTD, startEntitycharacters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warningpublic void setFailOnValidationError(boolean failOnValidationError)
public boolean isFailOnValidationError()
public void setEntityResolver(EntityResolver entityResolver)
public EntityResolver getEntityResolver()
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity in interface EntityResolverresolveEntity in class DefaultHandler2IOExceptionSAXExceptionpublic InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException
resolveEntity in interface EntityResolver2resolveEntity in class DefaultHandler2SAXExceptionIOExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic void error(SAXParseException e) throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXExceptionCopyright © 1996–2019 Geotools. All rights reserved.