org.jbind.xml.schema.cmp
Class Schema

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Schema
All Implemented Interfaces:
IHasLocation, ISchema

public class Schema
extends java.lang.Object
implements ISchema


Constructor Summary
Schema(java.lang.String aNamespace, IHasLocation aHasLocation)
           
 
Method Summary
 void addImportedSchema(ISchema aSchema)
          Adds a schema to the collection of directly imported schemas.
 IComponent getComponent(IRef aGlobalRef)
          Gets the specified component.
 IAnyTypeData getFactory()
           
 ILocation getLocation()
           
 java.lang.String getNamespace()
          Gets the namespace.
 java.util.Iterator iterComponents(ISymbolspace aSymbolSpace)
          Iterates the (top-level) components of the specified symbol space.
 java.util.Iterator iterImportedSchema()
          Iterates the schemas that are directly imported by this schema.
 void setComponent(IComponent aComponent, IConstraintViolations aViolations)
          Sets the specified component.
 void setFactory(IAnyTypeData aFactory)
           
 void validate(IConstraintViolations aViolations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schema

public Schema(java.lang.String aNamespace,
              IHasLocation aHasLocation)
Method Detail

getComponent

public IComponent getComponent(IRef aGlobalRef)
Description copied from interface: ISchema
Gets the specified component.

Specified by:
getComponent in interface ISchema
Parameters:
aGlobalRef - A reference (required).
Returns:
A component (optional).

setComponent

public void setComponent(IComponent aComponent,
                         IConstraintViolations aViolations)
Description copied from interface: ISchema
Sets the specified component.

Specified by:
setComponent in interface ISchema
Parameters:
aComponent - A component. (required)

iterComponents

public java.util.Iterator iterComponents(ISymbolspace aSymbolSpace)
Description copied from interface: ISchema
Iterates the (top-level) components of the specified symbol space.

Specified by:
iterComponents in interface ISchema
Parameters:
aSymbolSpace - (optional). If no symbol space is specified then all top-level components are iterated.
Returns:
(required). An iterator of IComponent.

getNamespace

public java.lang.String getNamespace()
Description copied from interface: ISchema
Gets the namespace.

Specified by:
getNamespace in interface ISchema
Returns:
(required).

validate

public void validate(IConstraintViolations aViolations)

getLocation

public ILocation getLocation()
Specified by:
getLocation in interface IHasLocation

getFactory

public IAnyTypeData getFactory()
Specified by:
getFactory in interface ISchema

setFactory

public void setFactory(IAnyTypeData aFactory)
Specified by:
setFactory in interface ISchema

addImportedSchema

public void addImportedSchema(ISchema aSchema)
Description copied from interface: ISchema
Adds a schema to the collection of directly imported schemas.

Specified by:
addImportedSchema in interface ISchema

iterImportedSchema

public java.util.Iterator iterImportedSchema()
Description copied from interface: ISchema
Iterates the schemas that are directly imported by this schema. Recursevly imported schemas are not returned.

Specified by:
iterImportedSchema in interface ISchema
Returns:
anIterator of ISchemas.