|
||||||||||||
| 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. |
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 attribute model. |
int |
getMinCardinality()
Returns the minimum number of values required by occurrences of this attribute. |
IAttributeValueModel |
getValueModel()
Returns value model of represented type of attribute as it defined in the context's ontology model. |
boolean |
isDirect()
TODO: What is this for? |
| Methods inherited from interface org.eclipse.higgins.idas.api.model.IModel |
|---|
getDisplayData, getType |
| Method Detail |
public IAttributeValueModel getValueModel()
public boolean isDirect()
public int getMaxCardinality()
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.
getMaxCardinality()public int getMinCardinality()
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.
getMinCardinality()public Iterator getMetadataModels()
IMetadataModelpublic IMetadataModel getMetadataModel(URI metadataType)
metadataType - the type of metadata.
null if
the specified metadataID is not defined or not valid for this
attribute model.
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||