org.geotools.xml.impl
Class ValidatorHandler

Object
  extended by DefaultHandler
      extended by 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

Constructor Summary
ValidatorHandler()
           
 
Method Summary
 void error(SAXParseException e)
           
 List<Exception> getErrors()
           
 boolean isFailOnValidationError()
           
 void setFailOnValidationError(boolean failOnValidationError)
           
 void startDocument()
           
 
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
 

Constructor Detail

ValidatorHandler

public ValidatorHandler()
Method Detail

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-2014 Geotools. All Rights Reserved.