Package org.geotools.xsd.impl
Class ValidatorHandler
Object
DefaultHandler
DefaultHandler2
ValidatorHandler
- All Implemented Interfaces:
EntityResolver3,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 TypeMethodDescriptionvoidComma seperated list of entity resolution protocols required for EntityResolver to function.booleanresolveEntity(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
declarationMethods inherited from interface EntityResolver2
getExternalSubset
-
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
-
getAccess
Description copied from interface:EntityResolver3Comma seperated list of entity resolution protocols required for EntityResolver to function.Common examples:
"http","file", or combined"file,http".To allow all access
"all", or to suppress all access""supported.- Specified by:
getAccessin interfaceEntityResolver3- Returns:
- Comma seperated list of protocols, allow all
"all", or none"".
-