org.apache.cocoon.components.validation.impl
Class DefaultValidationHandler

java.lang.Object
  extended by org.apache.excalibur.xml.sax.ContentHandlerProxy
      extended by org.apache.excalibur.xml.sax.XMLConsumerProxy
          extended by org.apache.cocoon.components.validation.impl.DefaultValidationHandler
All Implemented Interfaces:
ValidationHandler, XMLConsumer, ContentHandler, LexicalHandler

public class DefaultValidationHandler
extends XMLConsumerProxy
implements ValidationHandler

The default implementation of the ValidationHandler interface.


Constructor Summary
DefaultValidationHandler(SourceValidity validity, ContentHandler handler)
          Create a new DefaultValidationHandler instance.
DefaultValidationHandler(SourceValidity validity, ContentHandler contentHandler, LexicalHandler lexicalHandler)
          Create a new DefaultValidationHandler instance.
 
Method Summary
 SourceValidity getValidity()
          Return a SourceValidity instance associated with the original resources of the schema describing the validation instructions.
 
Methods inherited from class org.apache.excalibur.xml.sax.XMLConsumerProxy
comment, endCDATA, endDTD, endEntity, setLexicalHandler, startCDATA, startDTD, startEntity
 
Methods inherited from class org.apache.excalibur.xml.sax.ContentHandlerProxy
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

DefaultValidationHandler

public DefaultValidationHandler(SourceValidity validity,
                                ContentHandler handler)

Create a new DefaultValidationHandler instance.


DefaultValidationHandler

public DefaultValidationHandler(SourceValidity validity,
                                ContentHandler contentHandler,
                                LexicalHandler lexicalHandler)

Create a new DefaultValidationHandler instance.

Method Detail

getValidity

public 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.

Specified by:
getValidity in interface ValidationHandler


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