Package com.thaiopensource.validate
Interface SchemaReader
-
- All Known Implementing Classes:
AbstractSchemaReader
,AutoSchemaReader
,CompactSchemaReader
,SAXSchemaReader
,com.thaiopensource.validate.rng.impl.SchemaReaderImpl
public interface SchemaReader
A SchemaReader object is immutable and can thus be safely accessed concurrently from multiple threads.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Schema
createSchema(SAXSource source, PropertyMap properties)
Schema
createSchema(InputSource source, PropertyMap properties)
Creates aSchema
by reading it from anInputSource
.Option
getOption(String uri)
-
-
-
Field Detail
-
BASE_URI
static final String BASE_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSchema
Schema createSchema(InputSource source, PropertyMap properties) throws IOException, SAXException, IncorrectSchemaException
Creates aSchema
by reading it from anInputSource
.- Parameters:
source
-properties
- aPropertyMap
to control the schema creation; must not benull
@return a newly createdSchema
, nevernull
- Throws:
IOException
- if an I/O error occursSAXException
IncorrectSchemaException
- See Also:
ValidateProperty
-
createSchema
Schema createSchema(SAXSource source, PropertyMap properties) throws IOException, SAXException, IncorrectSchemaException
-
-