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

All Superinterfaces:
IModel

public interface IEntityModel
extends IModel

Represents a model of a entity as it defined in the context's ontology model.

The type returned by IModel.getType() could be used in IContext.addEntity(URI, String) to create an IEntity of the represented type.

See Also:
IBlankEntity.getModel()

Method Summary
 IAttributeModel getAttributeModel(URI attrID)
          Returns IAttributeModel for the specified attribute ID
 Iterator getAttributeModels()
          Returns IAttributeModels for the attributes which are defined (allowed) in this entity model.
 
Methods inherited from interface org.eclipse.higgins.idas.api.model.IModel
getDisplayData, getType
 

Method Detail

getAttributeModels

public Iterator getAttributeModels()
                            throws IdASException
Returns IAttributeModels for the attributes which are defined (allowed) in this entity model.

Returns:
Iterator of IAttributeModel
Throws:
IdASException
See Also:
IEntity.getAttributes()

getAttributeModel

public IAttributeModel getAttributeModel(URI attrID)
                                  throws IdASException
Returns IAttributeModel for the specified attribute ID

Parameters:
attrID - the ID of attribute.
Returns:
attribute's model of requested ID or null if the specified attrID is not defined or not valid for this entity model.
Throws:
IdASException