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

All Known Subinterfaces:
IContextModel, IEntityModel

public interface IHasAttributeModel


Method Summary
 IAttributeModel getAttributeModel(URI attrID)
          Returns IAttributeModel for the specified attribute ID
 List getAttributeModels()
          Returns IAttributeModels for the attributes which are defined (allowed) by this context's model.
 List getInheritedAttributeModels()
           
 int getMaxCardinality(URI attributeType)
           
 int getMinCardinality(URI attributeType)
           
 List getOwnAttributeModels()
           
 

Method Detail

getOwnAttributeModels

List getOwnAttributeModels()
                           throws IdASModelException
Returns:
Throws:
IdASModelException

getInheritedAttributeModels

List getInheritedAttributeModels()
                                 throws IdASModelException
Returns:
Throws:
IdASModelException

getAttributeModels

List getAttributeModels()
                        throws IdASModelException
Returns IAttributeModels for the attributes which are defined (allowed) by this context's model.

Returns:
List of IAttributeModel
Throws:
IdASModelException

getAttributeModel

IAttributeModel getAttributeModel(URI attrID)
                                  throws IdASModelException
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 context's model.
Throws:
IdASModelException

getMaxCardinality

int getMaxCardinality(URI attributeType)
                      throws IdASModelException
Returns:
A positive number indicates the maximum number of values that may be present. The value 0 indicates that there is no limit to the number of values that may be present.
Throws:
IdASModelException

getMinCardinality

int getMinCardinality(URI attributeType)
                      throws IdASModelException
Returns:
0 if no values are required to be present. This of course also means the attribute itself is optional. A positive number indicates the minimum number of values that must be present.
Throws:
IdASModelException