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

All Superinterfaces:
IModel
All Known Subinterfaces:
IAttributeComplexValueModel, IAttributeSimpleValueModel

public interface IAttributeValueModel
extends IModel

Represents value's model of attributes as it defined in the context's ontology model.


Method Summary
 int getMaxCardinality()
          Deprecated. This has been moved to IAttributeModel
 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 value model.
 int getMinCardinality()
          Deprecated. This has been moved to IAttributeModel
 URI getType()
          Returns XSD datatype of represented value as it defined in the context's schema.
 boolean isSimple()
          Determines whether this value model represents simple attribute's value.
 
Methods inherited from interface org.eclipse.higgins.idas.api.model.IModel
getDisplayData
 

Method Detail

getType

public URI getType()
Returns XSD datatype of represented value as it defined in the context's schema. Please note that XSD:ENTITY, XSD:ID and XSD:IDREF are not currently supported by context's ontology models.

Specified by:
getType in interface IModel
Returns:
URI of value's datatype.
See Also:
XML Schema

getMaxCardinality

public int getMaxCardinality()
Deprecated. This has been moved to IAttributeModel

Returns non negative integer value which represents maximum cardinality of represented attribute's value or -1 if not defined.

See Also:
getMaxCardinality()

getMinCardinality

public int getMinCardinality()
Deprecated. This has been moved to IAttributeModel

Returns non negative integer value which represents minimum cardinality of represented attribute's value or -1 if not defined.

See Also:
getMinCardinality()

isSimple

public boolean isSimple()
Determines whether this value model represents simple attribute's value.

Returns:
true if represented value is simple and false otherwise.

getMetadataModels

public Iterator getMetadataModels()
Returns IMetadataModels for the metadata elements which are defined (allowed) in this attribute value 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 attribute value model.