org.eclipse.higgins.idas
Interface IPropertyValue

All Known Subinterfaces:
IComplexValue, ISimpleValue
All Known Implementing Classes:
AbstractComplexValue, AbstractSimpleValue, BasicComplexValue, BasicSimpleValue, BasicValueAnyURI, BasicValueBase64Binary, BasicValueBoolean, BasicValueByte, BasicValueDate, BasicValueDateTime, BasicValueDecimal, BasicValueDouble, BasicValueFloat, BasicValueGDay, BasicValueGMonth, BasicValueGMonthDay, BasicValueGYear, BasicValueGYearMonth, BasicValueHexBinary, BasicValueInt, BasicValueInteger, BasicValueLanguage, BasicValueLong, BasicValueName, BasicValueNCName, BasicValueNegativeInteger, BasicValueNMTOKEN, BasicValueNonNegativeInteger, BasicValueNonPositiveInteger, BasicValueNormalizedString, BasicValuePositiveInteger, BasicValueShort, BasicValueString, BasicValueTime, BasicValueToken, BasicValueUnsignedByte, BasicValueUnsignedInt, BasicValueUnsignedLong, BasicValueUnsignedShort

public interface IPropertyValue

Holds the value of a property.

TODO: for convenience, add a method which returns the OWL range for this property's value(s). From this, one should be able to infer the Java class type of the value(s).

When the value is a Literal (isSimple() returns true), an instance of this interface may be cast to ISimpleValue, and the table found at ISimpleValue.getData() is used to determine the type returned from ISimpleValue.getData(). When the value is a Resource (isSimple() returns false), an instance of this interface may be cast to IComplexValue.


Field Summary
static java.lang.String BASE_OWL_URI
           
 
Method Summary
 java.lang.Object getData()
          Returns the backing Java object for this property value.
 java.net.URI getType()
           
 boolean isSimple()
           
 

Field Detail

BASE_OWL_URI

static final java.lang.String BASE_OWL_URI
See Also:
Constant Field Values
Method Detail

isSimple

boolean isSimple()
                 throws IdASException
Throws:
IdASException

getType

java.net.URI getType()
                     throws IdASException
Returns:
The OWL type for this property's value.
Throws:
IdASException

getData

java.lang.Object getData()
                         throws IdASException
Returns the backing Java object for this property value.

TODO: This method is a temporary hack to solve the issue brought up in this thread.

Throws:
IdASException