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 TypeMethodDescriptionvoidbooleanresolveEntity(String publicId, String systemId) resolveEntity(String name, String publicId, String baseURI, String systemId) voidsetEntityResolver(EntityResolver entityResolver) voidsetFailOnValidationError(boolean failOnValidationError) voidMethods inherited from class DefaultHandler2
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, startCDATA, startDTD, startEntityMethods inherited from class DefaultHandler
characters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
resolveEntityin interfaceEntityResolver- Overrides:
resolveEntityin classDefaultHandler2- Throws:
IOExceptionSAXException
-
resolveEntity
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException - Specified by:
resolveEntityin interfaceEntityResolver2- Overrides:
resolveEntityin classDefaultHandler2- Throws:
SAXExceptionIOException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Overrides:
errorin classDefaultHandler- Throws:
SAXException
-
getErrors
-