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, startEntity
characters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning
public 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 EntityResolver
resolveEntity
in class DefaultHandler2
IOException
SAXException
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver2
resolveEntity
in class DefaultHandler2
SAXException
IOException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
SAXException
Copyright © 1996–2019 Geotools. All rights reserved.