org.jbind.xml.core.cmp
Interface ISchema

All Superinterfaces:
IHasLocation
All Known Implementing Classes:
Schema

public interface ISchema
extends IHasLocation

Contains the schema components of a namespace.


Method Summary
 void addImportedSchema(ISchema aSchema)
          Adds a schema to the collection of directly imported schemas.
 IComponent getComponent(IRef aRef)
          Gets the specified component.
 IAnyTypeData getFactory()
           
 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)
           
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 

Method Detail

getNamespace

public java.lang.String getNamespace()
Gets the namespace.

Returns:
(required).

getComponent

public IComponent getComponent(IRef aRef)
Gets the specified component.

Parameters:
aRef - A reference (required).
Returns:
A component (optional).

iterComponents

public java.util.Iterator iterComponents(ISymbolspace aSymbolSpace)
Iterates the (top-level) components of the specified symbol space.

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

setComponent

public void setComponent(IComponent aComponent,
                         IConstraintViolations aViolations)
Sets the specified component.

Parameters:
aComponent - A component. (required)

getFactory

public IAnyTypeData getFactory()

setFactory

public void setFactory(IAnyTypeData aFactory)

addImportedSchema

public void addImportedSchema(ISchema aSchema)
Adds a schema to the collection of directly imported schemas.


iterImportedSchema

public java.util.Iterator iterImportedSchema()
Iterates the schemas that are directly imported by this schema. Recursevly imported schemas are not returned.

Returns:
anIterator of ISchemas.