org.eclipse.higgins.idas.api.model
Interface IContextModel

All Superinterfaces:
IModel

public interface IContextModel
extends IModel

Represents a model of the context object as it defined in the context's ontology model. Since context's ontology model is defined in OWL DL format this interface is designed to simlify query and interpretation of the context's ontology model.

The URI returned by IModel.getType() could be used to retrieve an URL of the OWL ontology where this context's model is defined.

See Also:
IContext

Method Summary
 IEntityModel getEntityModel(URI entityType)
          Returns the IEntityModel for the specified entity type
 Iterator getEntityModels()
          Returns IEntityModels for the entities which are defined (allowed) in this context model.
 IModel getModel(URI type)
          Generic method to query context model for any kind of element matching the specified type.
 
Methods inherited from interface org.eclipse.higgins.idas.api.model.IModel
getDisplayData, getType
 

Method Detail

getModel

public IModel getModel(URI type)
Generic method to query context model for any kind of element matching the specified type. This could be the type of an entity, attribute, metadata, etc.

Parameters:
type - the type of the entity for which to retrieve the model.
Returns:
the model of the element specified by type or null if no element corresponding to that type is defined in this context model.

getEntityModels

public Iterator getEntityModels()
Returns IEntityModels for the entities which are defined (allowed) in this context model.

Returns:
Iterator of IEntityModel
See Also:
IContext.getEntity(String), IContext.getEntities(IFilter)

getEntityModel

public IEntityModel getEntityModel(URI entityType)
Returns the IEntityModel for the specified entity type

Parameters:
entityType -
Returns:
IEntityModel for the specified entity type