org.jbind.xml.schema.cmp
Class Schemas

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Schemas
All Implemented Interfaces:
ISchemas

public class Schemas
extends java.lang.Object
implements ISchemas

Singleton that provides access to schema components.


Method Summary
 void addEnumerationOption(java.lang.String aFqTypeName, java.lang.String anOptionName, IAnyTypeData aData)
           
 IComponent getComponent(IRef aGlobalRef)
          Gets a commponent.
 IAnyTypeData getEnumerationOption(java.lang.String aFqTypeName, java.lang.String anOptionName)
           
static ISchemas getInstance()
           
 ISchema getSchema(java.lang.String aNamespace)
          Gets the schema for the specified namespace.
 void reset()
          Clears all schema information.
 void setSchema(ISchema aSchema)
          Sets the specified schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ISchemas getInstance()

getSchema

public ISchema getSchema(java.lang.String aNamespace)
Description copied from interface: ISchemas
Gets the schema for the specified namespace.

Specified by:
getSchema in interface ISchemas
Parameters:
aNamespace - (required).
Returns:
(optional).

getComponent

public IComponent getComponent(IRef aGlobalRef)
Description copied from interface: ISchemas
Gets a commponent.

Specified by:
getComponent in interface ISchemas
Parameters:
aGlobalRef - (required)
Returns:
(optional)

setSchema

public void setSchema(ISchema aSchema)
Description copied from interface: ISchemas
Sets the specified schema.

Specified by:
setSchema in interface ISchemas
Parameters:
aSchema - A schema.

addEnumerationOption

public void addEnumerationOption(java.lang.String aFqTypeName,
                                 java.lang.String anOptionName,
                                 IAnyTypeData aData)
Specified by:
addEnumerationOption in interface ISchemas

getEnumerationOption

public IAnyTypeData getEnumerationOption(java.lang.String aFqTypeName,
                                         java.lang.String anOptionName)
Specified by:
getEnumerationOption in interface ISchemas

reset

public void reset()
Description copied from interface: ISchemas
Clears all schema information.

Specified by:
reset in interface ISchemas