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

Field Summary
static String MIXED_MODE
          Different ontology classes can have different cardinality for the same property.
static String MULTY_VALUED_MODE
          Different ontology classes can have different cardinality for the same property.
static String SINGLE_VALUED_MODE
          property.
 
Method Summary
 String getAttributeMode()
          For some context providers the data storage model depends on whether the attribute is single- or multiple- valued.
 List getInheretedValueModels()
           
 List getOwners()
           
 List getOwnValueModels()
           
 List getSubAttributes()
           
 IAttributeModel getSuperAttribute()
           
 IValueModel getValueModel()
          Deprecated. Attribute values can all have different value models now
 List getValueModels()
           
 boolean isSimple()
           
 
Methods inherited from interface org.eclipse.higgins.idas.api.model.IModel
getShortFormType, getType
 

Field Detail

SINGLE_VALUED_MODE

static final String SINGLE_VALUED_MODE
property. Indicates that property associated with this attribute has max cardinality == 1 for all Entities/BlankEntities in the context

See Also:
Constant Field Values

MULTY_VALUED_MODE

static final String MULTY_VALUED_MODE
Different ontology classes can have different cardinality for the same property. Indicates that property associated with this attribute has max cardinality != 1 for all Entities/BlankEntities in the context

See Also:
Constant Field Values

MIXED_MODE

static final String MIXED_MODE
Different ontology classes can have different cardinality for the same property. Indicates that property associated with this attribute has as max cardinality == 1 for some Entities/BlankEntities as max cardinality != 1 for others Entities/BlankEntities

See Also:
Constant Field Values
Method Detail

getValueModel

IValueModel getValueModel()
                          throws IdASModelException
Deprecated. Attribute values can all have different value models now

Returns value model of represented type of attribute as it defined in the context's ontology model.

Throws:
IdASModelException

getValueModels

List getValueModels()
                    throws IdASModelException
Returns:
List of value models of attribute as it defined in the context's model.
Throws:
IdASModelException

getOwnValueModels

List getOwnValueModels()
                       throws IdASModelException
Returns:
List of value models which correspond to ranges directly declared for property of attribute in the context's model schema.
Throws:
IdASModelException

getInheretedValueModels

List getInheretedValueModels()
                             throws IdASModelException
Returns:
List of value models which correspond to ranges declared for super properties of attribute's property in the context's model schema.
Throws:
IdASModelException

isSimple

boolean isSimple()
                 throws IdASModelException
Returns:
true if attribute contains simple values, otherwise false
Throws:
IdASModelException

getOwners

List getOwners()
               throws IdASModelException
Returns:
List of org.eclipse.higgins.idas.api.IHasAttributeModel which can have this attribute model
Throws:
IdASModelException

getSubAttributes

List getSubAttributes()
                      throws IdASModelException
Returns:
List of org.eclipse.higgins.idas.api.IAttributeModel which properties are sub properties of property of this attribute model
Throws:
IdASModelException

getSuperAttribute

IAttributeModel getSuperAttribute()
                                  throws IdASModelException
Returns:
Attribute model which property is super property for this attribute model
Throws:
IdASModelException

getAttributeMode

String getAttributeMode()
                        throws IdASModelException
For some context providers the data storage model depends on whether the attribute is single- or multiple- valued. This method analyzes all entities in the context model which have this attribute and returns in which approach is this attribute used

Returns:
SINGLE_VALUED_MODEL - if all Entities in the context model own this attribute as single valued. MULTY_VALUED_MODEL - if all Entities in the context model own this attribute as single valued. MIXED_MODEL - if some Entities in the context model own this attribute as single valued, but others own this attribute as multy valued.
Throws:
IdASException
IdASModelException