org.geotools.xml.impl
Class ValidatorHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by 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

Constructor Summary
ValidatorHandler()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException e)
           
 java.util.List<java.lang.Exception> getErrors()
           
 boolean isFailOnValidationError()
           
 void setFailOnValidationError(boolean failOnValidationError)
           
 void startDocument()
           
 
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
 

Constructor Detail

ValidatorHandler

public ValidatorHandler()
Method Detail

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.