Package org.geotools.xsd.impl
Class ValidatorHandler
- Object
- 
- DefaultHandler
- 
- DefaultHandler2
- 
- ValidatorHandler
 
 
 
- 
- All Implemented Interfaces:
- ContentHandler,- DTDHandler,- EntityResolver,- ErrorHandler,- DeclHandler,- EntityResolver2,- LexicalHandler
 
 public class ValidatorHandler extends DefaultHandler2 Handler for validating a document.This class is used by the parser to validate while parsing. - Author:
- Justin Deoliveira, OpenGeo
 
- 
- 
Constructor SummaryConstructors Constructor Description ValidatorHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(SAXParseException e)EntityResolvergetEntityResolver()List<Exception>getErrors()booleanisFailOnValidationError()InputSourceresolveEntity(String publicId, String systemId)InputSourceresolveEntity(String name, String publicId, String baseURI, String systemId)voidsetEntityResolver(EntityResolver entityResolver)voidsetFailOnValidationError(boolean failOnValidationError)voidstartDocument()- 
Methods inherited from class DefaultHandler2attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, startCDATA, startDTD, startEntity
 - 
Methods inherited from class DefaultHandlercharacters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
- 
 
- 
- 
- 
Method Detail- 
setFailOnValidationErrorpublic void setFailOnValidationError(boolean failOnValidationError) 
 - 
isFailOnValidationErrorpublic boolean isFailOnValidationError() 
 - 
setEntityResolverpublic void setEntityResolver(EntityResolver entityResolver) 
 - 
getEntityResolverpublic EntityResolver getEntityResolver() 
 - 
resolveEntitypublic InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException - Specified by:
- resolveEntityin interface- EntityResolver
- Overrides:
- resolveEntityin class- DefaultHandler2
- Throws:
- IOException
- SAXException
 
 - 
resolveEntitypublic InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException - Specified by:
- resolveEntityin interface- EntityResolver2
- Overrides:
- resolveEntityin class- DefaultHandler2
- Throws:
- SAXException
- IOException
 
 - 
startDocumentpublic void startDocument() throws SAXException- Specified by:
- startDocumentin interface- ContentHandler
- Overrides:
- startDocumentin class- DefaultHandler
- Throws:
- SAXException
 
 - 
errorpublic void error(SAXParseException e) throws SAXException - Specified by:
- errorin interface- ErrorHandler
- Overrides:
- errorin class- DefaultHandler
- Throws:
- SAXException
 
 
- 
 
-