com.thaiopensource.relaxng.impl
Class SchemaReaderImpl

java.lang.Object
  extended bycom.thaiopensource.relaxng.impl.SchemaReaderImpl
All Implemented Interfaces:
SchemaReader
Direct Known Subclasses:
CompactSchemaReader, SAXSchemaReader

public abstract class SchemaReaderImpl
extends java.lang.Object
implements SchemaReader


Field Summary
 
Fields inherited from interface com.thaiopensource.validate.SchemaReader
BASE_URI
 
Constructor Summary
SchemaReaderImpl()
           
 
Method Summary
protected abstract  Parseable createParseable(XMLReaderCreator xrc, org.xml.sax.InputSource in, org.xml.sax.ErrorHandler eh)
           
 Schema createSchema(org.xml.sax.InputSource in, PropertyMap properties)
          Creates a Schema by reading it from an InputSource.
 Option getOption(java.lang.String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaReaderImpl

public SchemaReaderImpl()
Method Detail

createSchema

public Schema createSchema(org.xml.sax.InputSource in,
                           PropertyMap properties)
                    throws java.io.IOException,
                           org.xml.sax.SAXException,
                           IncorrectSchemaException
Description copied from interface: SchemaReader
Creates a Schema by reading it from an InputSource.

Specified by:
createSchema in interface SchemaReader
Parameters:
in - the InputSource from which to read the schema; must not be null
properties - a PropertyMap to control the schema creation; must not be null
Returns:
a newly created Schema, never null
Throws:
org.xml.sax.SAXException
java.io.IOException - if an I/O error occurs
IncorrectSchemaException
See Also:
ValidateProperty

getOption

public Option getOption(java.lang.String uri)
Specified by:
getOption in interface SchemaReader

createParseable

protected abstract Parseable createParseable(XMLReaderCreator xrc,
                                             org.xml.sax.InputSource in,
                                             org.xml.sax.ErrorHandler eh)