|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
IAttribute
Method Summary | |
---|---|
int |
getMaxCardinality()
Returns the maximum number of values required by occurrences of this attribute. |
int |
getMinCardinality()
Returns the minimum number of values required by occurrences of this attribute. |
IAttributeValueModel |
getValueModel()
Deprecated. Attribute values can all have different value models now |
boolean |
isDirect()
Deprecated. Don't know what this is |
Methods inherited from interface org.eclipse.higgins.idas.api.model.IModel |
---|
getDisplayData, getType |
Method Detail |
public IAttributeValueModel getValueModel() throws IdASException
IdASException
public boolean isDirect() throws IdASException
IdASException
public int getMaxCardinality() throws IdASException
IEntityModel.getAttributeModel(URI)
or
IEntityModel.getAttributeModels()
, the maximum cardinality
refers to occurrences of this attribute in relationship to that Entity
type.
When this IAttributeModel is returned from IContextModel.getModel(URI)
,
the minimum cardinality refers to the default
behavior of occurrences of this attribute, but the cardinality may be overridden
as the attribute is applied to any given Entity type. Therefore,
it's best to query an attribute's cardinality as it applies to a particular
Entity.
IdASException
getMaxCardinality()
public int getMinCardinality() throws IdASException
IEntityModel.getAttributeModel(URI)
or
IEntityModel.getAttributeModels()
, the minimum cardinality
refers to occurrences of this attribute in relationship to that Entity
type.
When this IAttributeModel is returned from IContextModel.getModel(URI)
,
the minimum cardinality refers to the default
behavior of occurrences of this attribute, but the cardinality may be overridden
as the attribute is applied to any given Entity type. Therefore,
it's best to query an attribute's cardinality as it applies to a particular
Entity.
IdASException
getMinCardinality()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |