org.apache.cocoon.components.validation
Interface ValidationHandler

All Superinterfaces:
ContentHandler, LexicalHandler
All Known Implementing Classes:
DefaultValidationHandler

public interface ValidationHandler
extends ContentHandler, LexicalHandler

A ValidationHandler represents a ContentHandler validating SAX events according to a validation schema.

As the handler might be tied to one (or more) resources from where the original schema was read from, the getValidity() method provides a way to verify whether the validation instruction are still valid or not.


Method Summary
 SourceValidity getValidity()
          Return a SourceValidity instance associated with the original resources of the schema describing the validation instructions.
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
 

Method Detail

getValidity

SourceValidity getValidity()

Return a SourceValidity instance associated with the original resources of the schema describing the validation instructions.

As the handler might be tied to one (or more) resources from where the original schema was read from, the getValidity() method provides a way to verify whether the validation instruction are still valid or not.



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.