Package org.geotools.xsd.impl
Class ValidatorHandler
Object
DefaultHandler
DefaultHandler2
ValidatorHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,DeclHandler
,EntityResolver2
,LexicalHandler
Handler for validating a document.
This class is used by the parser to validate while parsing.
- Author:
- Justin Deoliveira, OpenGeo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
resolveEntity
(String publicId, String systemId) resolveEntity
(String name, String publicId, String baseURI, String systemId) void
setEntityResolver
(EntityResolver entityResolver) void
setFailOnValidationError
(boolean failOnValidationError) void
Methods inherited from class DefaultHandler2
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, startCDATA, startDTD, startEntity
Methods inherited from class DefaultHandler
characters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ContentHandler
declaration
-
Constructor Details
-
ValidatorHandler
public ValidatorHandler()
-
-
Method Details
-
setFailOnValidationError
public void setFailOnValidationError(boolean failOnValidationError) -
isFailOnValidationError
public boolean isFailOnValidationError() -
setEntityResolver
-
getEntityResolver
-
resolveEntity
- Specified by:
resolveEntity
in interfaceEntityResolver
- Overrides:
resolveEntity
in classDefaultHandler2
- Throws:
IOException
SAXException
-
resolveEntity
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException - Specified by:
resolveEntity
in interfaceEntityResolver2
- Overrides:
resolveEntity
in classDefaultHandler2
- Throws:
SAXException
IOException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
-
error
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classDefaultHandler
- Throws:
SAXException
-
getErrors
-