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

All Superinterfaces:
IModel

public interface IAttributeModel
extends IModel

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

The type returned by IModel.getType() could be used in IHasAttributes.addAttribute(URI) to create an IAttribute of represented type.

See Also:
IAttribute

Method Summary
 IMetadataModel getMetadataModel(URI metadataID)
          Returns IMetadataModel for the specified metadata ID
 Iterator getMetadataModels()
          Returns IMetadataModels for the metadata elements which are defined (allowed) in this attribute model.
 IAttributeValueModel getValueModel()
          Returns value model of represented type of attribute as it defined in the context's ontology model.
 boolean isDirect()
           
 
Methods inherited from interface org.eclipse.higgins.idas.api.model.IModel
getDisplayData, getType
 

Method Detail

getValueModel

public IAttributeValueModel getValueModel()
Returns value model of represented type of attribute as it defined in the context's ontology model.


isDirect

public boolean isDirect()

getMetadataModels

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

Returns:
Iterator of IMetadataModel

getMetadataModel

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

Parameters:
metadataID - 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 attribute model.