com.thaiopensource.relaxng.impl
Class SchemaReaderImpl
java.lang.Object
com.thaiopensource.relaxng.impl.SchemaReaderImpl
- All Implemented Interfaces:
- SchemaReader
- Direct Known Subclasses:
- CompactSchemaReader, SAXSchemaReader
public abstract class SchemaReaderImpl
- extends Object
- implements SchemaReader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
supportedPropertyIds
private static final PropertyId[] supportedPropertyIds
SchemaReaderImpl
public SchemaReaderImpl()
createSchema
public Schema createSchema(InputSource in,
PropertyMap properties)
throws IOException,
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:
IOException
- if an I/O error occurs
SAXException
IncorrectSchemaException
- See Also:
ValidateProperty
getOption
public Option getOption(String uri)
- Specified by:
getOption
in interface SchemaReader
wrapPattern
static Schema wrapPattern(Pattern start,
SchemaPatternBuilder spb,
PropertyMap properties)
throws SAXException,
IncorrectSchemaException
- Throws:
SAXException
IncorrectSchemaException
createParseable
protected abstract Parseable createParseable(XMLReaderCreator xrc,
InputSource in,
ErrorHandler eh,
EntityResolver er)