org.geotools.xml.impl
Class ValidatorHandler
Object
DefaultHandler
ValidatorHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class ValidatorHandler
- extends DefaultHandler
Handler for validating a document.
This class is used by the parser to validate while parsing.
- Author:
- Justin Deoliveira, OpenGeo
- Module:
modules/extension/xsd-core (gt-xsd-core.jar)
Methods inherited from class DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidatorHandler
public ValidatorHandler()
setFailOnValidationError
public void setFailOnValidationError(boolean failOnValidationError)
isFailOnValidationError
public boolean isFailOnValidationError()
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class DefaultHandler
- Throws:
SAXException
error
public void error(SAXParseException e)
throws SAXException
- Specified by:
error
in interface ErrorHandler
- Overrides:
error
in class DefaultHandler
- Throws:
SAXException
getErrors
public List<Exception> getErrors()
Copyright © 1996-2009 Geotools. All Rights Reserved.