org.apache.cocoon.components.validation.jing
Class JingSchema

java.lang.Object
  extended by org.apache.cocoon.components.validation.impl.AbstractSchema
      extended by org.apache.cocoon.components.validation.jing.JingSchema
All Implemented Interfaces:
Schema

public class JingSchema
extends AbstractSchema

An extension of AbstractSchema used by the JingSchemaParser implementation.


Constructor Summary
protected JingSchema(com.thaiopensource.validate.Schema schema, SourceValidity validity)
          Create a new JingSchema instance.
 
Method Summary
 ValidationHandler createValidator(ErrorHandler errorHandler)
          Return a new ValidationHandler instance that can be used to send SAX events to for proper validation.
 
Methods inherited from class org.apache.cocoon.components.validation.impl.AbstractSchema
getValidity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JingSchema

protected JingSchema(com.thaiopensource.validate.Schema schema,
                     SourceValidity validity)

Create a new JingSchema instance.

Parameters:
schema - the JING original schema to wrap.
validity - the SourceValidity associated with the schema.
Method Detail

createValidator

public ValidationHandler createValidator(ErrorHandler errorHandler)
                                  throws SAXException

Return a new ValidationHandler instance that can be used to send SAX events to for proper validation.

The specified ErrorHandler will be notified of all warnings or errors encountered validating the SAX events sent to the returned ValidationHandler.

Parameters:
errorHandler - an ErrorHandler to notify of validation errors.
Returns:
a non-null ValidationHandler instance.
Throws:
SAXException - if an error occurred creating the validation handler.


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