Package org.iso_relax.dispatcher.impl
Class AbstractSchemaProviderImpl
- java.lang.Object
-
- org.iso_relax.dispatcher.impl.AbstractSchemaProviderImpl
-
- All Implemented Interfaces:
SchemaProvider
public abstract class AbstractSchemaProviderImpl extends java.lang.Object implements SchemaProvider
default implementation of SchemaProvider. Applications can use this class as the base class of their own SchemaProvider.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Mapschemataa map from primary namespace to IslandSchema.
-
Constructor Summary
Constructors Constructor Description AbstractSchemaProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSchema(java.lang.String uri, IslandSchema s)adds a new IslandSchema.IslandSchemagetSchemaByNamespace(java.lang.String uri)gets IslandSchema whose primary namespace URI is the given value.IslandSchema[]getSchemata()returns all IslandSchemata at once.java.util.IteratoriterateNamespace()iterates all namespaces that are registered in this object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.iso_relax.dispatcher.SchemaProvider
createTopLevelVerifier
-
-
-
-
Method Detail
-
addSchema
public void addSchema(java.lang.String uri, IslandSchema s)adds a new IslandSchema. the caller should make sure that the given uri is not defined already.
-
getSchemaByNamespace
public IslandSchema getSchemaByNamespace(java.lang.String uri)
Description copied from interface:SchemaProvidergets IslandSchema whose primary namespace URI is the given value.- Specified by:
getSchemaByNamespacein interfaceSchemaProvider- Returns:
- null if no such IslandSchema exists.
-
iterateNamespace
public java.util.Iterator iterateNamespace()
Description copied from interface:SchemaProvideriterates all namespaces that are registered in this object.- Specified by:
iterateNamespacein interfaceSchemaProvider
-
getSchemata
public IslandSchema[] getSchemata()
Description copied from interface:SchemaProviderreturns all IslandSchemata at once.- Specified by:
getSchematain interfaceSchemaProvider
-
-