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

All Superinterfaces:
IHasAttributeModel, IModel

public interface IContextModel
extends IModel, IHasAttributeModel

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
 List getEntityModels()
           
 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
getShortFormType, getType
 
Methods inherited from interface org.eclipse.higgins.idas.api.model.IHasAttributeModel
getAttributeModel, getAttributeModels, getInheritedAttributeModels, getMaxCardinality, getMinCardinality, getOwnAttributeModels
 

Method Detail

getModel

IModel getModel(URI type)
                throws IdASModelException
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.
Throws:
IdASModelException

getEntityModels

List getEntityModels()
                     throws IdASModelException
Returns:
List of all entity models of context model
Throws:
IdASModelException

getEntityModel

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

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