|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.xml.schematic.msv.SchemaFactoryImpl
public final class SchemaFactoryImpl
Implementation of Schema factory. Is not intended to be used by clients.
Nested Class Summary | |
---|---|
static class |
SchemaFactoryImpl.SchemaMetadataBean
Contains metadata about a schema. |
Constructor Summary | |
---|---|
SchemaFactoryImpl()
|
Method Summary | |
---|---|
ISchema |
getSchema(String namespaceURI,
SchemaPool pool)
Produces a schema object from file represented by url . |
Set<String> |
getSupported()
Returns set of supported namespaces. |
protected boolean |
isDTD(String fileName)
Returns true if the schema specified is DTD. |
void |
registerSchema(String namespace,
SchemaFactoryImpl.SchemaMetadataBean bean)
Registers schema for given namespace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaFactoryImpl()
Method Detail |
---|
protected final boolean isDTD(String fileName)
fileName
- schema file to query.
public void registerSchema(String namespace, SchemaFactoryImpl.SchemaMetadataBean bean)
namespace
- the namespace to register schema.bean
- metadata about a schema file.public Set<String> getSupported()
ISchemaFactory
getSupported
in interface ISchemaFactory
public ISchema getSchema(String namespaceURI, SchemaPool pool) throws SchemaException, IOException
ISchemaFactory
url
.
This schema should accept elements from this namespace.
getSchema
in interface ISchemaFactory
namespaceURI
- the namespace URI the schema will validate.pool
- the validation context. The schema must take
the context
into account.
null
.
SchemaException
- when error in loading of schema occurs.
IOException
- if i/o error occurs during schema loading.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |