org.geotools.xml.impl
Class ValidatorHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.geotools.xml.impl.ValidatorHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class ValidatorHandler
- extends org.xml.sax.helpers.DefaultHandler
Handler for validating a document.
This class is used by the parser to validate while parsing.
- Author:
- Justin Deoliveira, OpenGeo
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.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 org.xml.sax.SAXException
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
- Overrides:
startDocument
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
error
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Specified by:
error
in interface org.xml.sax.ErrorHandler
- Overrides:
error
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
getErrors
public java.util.List<java.lang.Exception> getErrors()
Copyright © 1996-2010 Geotools. All Rights Reserved.