org.eclipse.higgins.idas.api
Interface IAttributeValue

All Superinterfaces:
IHasAttributes
All Known Subinterfaces:
IComplexAttrValue, ISimpleAttrValue

public interface IAttributeValue
extends IHasAttributes

Holds the value of an attribute.

This interface is not intended to be instantiated (only used as a super-interface). When the value is a Literal (isSimple() returns true), an instance of this interface may be cast to ISimpleAttrValue, and the table found at ITypedValue.getData() is used to determine the type returned from ITypedValue.getData(). When the value is a Resource (isSimple() returns false), an instance of this interface may be cast to IComplexAttrValue.

This extends IHasAttributes so that metadata about the attribute may be presented as attributes on this attribute.


Field Summary
static String BASE_OWL_URI
          Value: "http://www.eclipse.org/higgins/ontologies/2008/6/higgins#"
 
Method Summary
 boolean equals(IAttributeValue value)
          returns true if this IAttributeValue is equal to the passed IAttributeValue This should test the attribute ID, metadata, and the value for equality.
 URI getDataType()
          Deprecated. Instead, call IAttributeValue#getModel() and from that call IModel#getType(). Doing this is equivalent to calling this method.
 URI getValueType()
          Returns this value's data type (like string, int, address) This is a shortcut for calling getModel().getType().
 boolean isSimple()
           
 void remove()
          Removes this value from its IAttribute container Note: This operation is only applied to any backing data store after IContext.applyUpdates() is called.
 
Methods inherited from interface org.eclipse.higgins.idas.api.IHasAttributes
addAttribute, addAttribute, equals, getAttribute, getAttributes, getSingleValuedAttribute, removeAttribute, removeAttributeValue, removeAttributeValue
 

Field Detail

BASE_OWL_URI

public static final String BASE_OWL_URI
Value: "http://www.eclipse.org/higgins/ontologies/2008/6/higgins#"

See Also:
Constant Field Values
Method Detail

isSimple

public boolean isSimple()
                 throws IdASException
Throws:
IdASException

getDataType

public URI getDataType()
                throws IdASException
Deprecated. Instead, call IAttributeValue#getModel() and from that call IModel#getType(). Doing this is equivalent to calling this method.

Returns this value's data type (like string, int, address) TODO (Doc): refer to an example like those found at http://wiki.eclipse.org/index.php/Person-with-address_Example_Context_Ontology

Returns:
The OWL type for this attribute's value (i.e. http://www.w3.org/2001/XMLSchema/string or http://www.eclipse.org/higgins/ontologies/2008/6/higgins#RelativeEntityUDI).
Throws:
IdASException

getValueType

public URI getValueType()
                 throws IdASException
Returns this value's data type (like string, int, address) This is a shortcut for calling getModel().getType(). TODO (Doc): refer to an example like those found at http://wiki.eclipse.org/index.php/Person-with-address_Example_Context_Ontology

Returns:
The OWL type for this attribute's value (i.e. http://www.w3.org/2001/XMLSchema/string or http://www.eclipse.org/higgins/ontologies/2008/6/higgins#RelativeEntityUDI).
Throws:
IdASException

remove

public void remove()
            throws IdASException
Removes this value from its IAttribute container Note: This operation is only applied to any backing data store after IContext.applyUpdates() is called.

Throws:
{@link - IdASException}
IdASException

equals

public boolean equals(IAttributeValue value)
               throws IdASException
returns true if this IAttributeValue is equal to the passed IAttributeValue This should test the attribute ID, metadata, and the value for equality.

Throws:
IdASException