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:
IEntity.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.
 IMetadataModel getMetadataModel(URI metadataType)
          Returns IMetadataModel for the specified metadata ID
 Iterator getMetadataModels()
          Returns IMetadataModels for the metadata elements 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()
Returns IAttributeModels for the attributes which are defined (allowed) in this entity model.

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

getAttributeModel

public IAttributeModel getAttributeModel(URI attrID)
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.

getMetadataModels

public Iterator getMetadataModels()
Returns IMetadataModels for the metadata elements which are defined (allowed) in this entity model.

Returns:
Iterator of IMetadataModel

getMetadataModel

public IMetadataModel getMetadataModel(URI metadataType)
Returns IMetadataModel for the specified metadata ID

Parameters:
metadataType - the type of metadata.
Returns:
metadata's model of requested type or null if the specified metadataID is not defined or not valid for this entity model.