org.iso_relax.dispatcher.impl

Class AbstractSchemaProviderImpl

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.
Author:
Kohsuke KAWAGUCHI

Method Summary

void
addSchema(String uri, IslandSchema s)
adds a new IslandSchema.
IslandSchema
getSchemaByNamespace(String uri)
gets IslandSchema whose primary namespace URI is the given value.
IslandSchema[]
getSchemata()
returns all IslandSchemata at once.
Iterator
iterateNamespace()
iterates all namespaces that are registered in this object.

Method Details

addSchema

public void addSchema(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(String uri)
gets IslandSchema whose primary namespace URI is the given value.
Specified by:
getSchemaByNamespace in interface SchemaProvider
Returns:
null if no such IslandSchema exists.

getSchemata

public IslandSchema[] getSchemata()
returns all IslandSchemata at once.
Specified by:
getSchemata in interface SchemaProvider

iterateNamespace

public Iterator iterateNamespace()
iterates all namespaces that are registered in this object.
Specified by:
iterateNamespace in interface SchemaProvider