org.eclipse.higgins.idas
Interface ILiteral

Package class diagram package ILiteral
All Superinterfaces:
IPropertyValue
All Known Implementing Classes:
AbstractLiteral, BasicValueBase64Binary, BasicValueBoolean, BasicValueByte, BasicValueDate, BasicValueDateTime, BasicValueDay, BasicValueDecimal, BasicValueDouble, BasicValueFloat, BasicValueHexBinary, BasicValueInt, BasicValueInteger, BasicValueLanguage, BasicValueLong, BasicValueMonth, BasicValueMonthDay, BasicValueName, BasicValueNCName, BasicValueNegativeInteger, BasicValueNMTOKEN, BasicValueNonNegativeInteger, BasicValueNonPositiveInteger, BasicValueNormalizedString, BasicValuePositiveInteger, BasicValueShort, BasicValueString, BasicValueTime, BasicValueToken, BasicValueUnsignedByte, BasicValueUnsignedInt, BasicValueUnsignedLong, BasicValueUnsignedShort, BasicValueURI, BasicValueYear, BasicValueYearMonth

public interface ILiteral
extends IPropertyValue


Method Summary
 String getCanonical()
          Returns the canonical representation if this value is a literal
 Object getData()
          Returns the underlying Java object holding this literal's value.
 String getLexical()
          Returns a lexical representation if this value is a literal
 
Methods inherited from interface org.eclipse.higgins.idas.IPropertyValue
isLiteral
 

Method Detail

getLexical

String getLexical()
                  throws IdASException
Returns a lexical representation if this value is a literal

Throws:
IdASException

getCanonical

String getCanonical()
                    throws IdASException
Returns the canonical representation if this value is a literal

Throws:
IdASException

getData

Object getData()
               throws IdASException
Returns the underlying Java object holding this literal's value. The following table specifies the mapping between OWL datatypes and Java classes. An instance of the class listed in the right column is returned by getData()

xsd:stringString. See BasicValueString for example.
xsd:normalizedStringString constrained to normalizedString. See BasicValueNormalizedString for example.
xsd:booleanBoolean. See BasicValueBoolean for example.
xsd:decimalBigDecimal. See BasicValueDecimal for example.
xsd:integerBigInteger. See BasicValueInteger for example.
xsd:nonNegativeIntegerBigInteger. See BasicValueNonNegativeInteger for example.
xsd:positiveIntegerBigInteger. See BasicValuePositiveInteger for example.
xsd:nonPositiveIntegerBigInteger. See BasicValueNonPositiveInteger for example.
xsd:negativeIntegerBigInteger. See BasicValueNegativeInteger for example.
xsd:floatFloat. See BasicValueFloat for example.
xsd:doubleDouble. See BasicValueDouble for example.
xsd:longLong. See BasicValueLong for example.
xsd:intInteger. See BasicValueInteger for example.
xsd:shortShort. See BasicValueShort for example.
xsd:byteByte. See BasicValueByte for example.
xsd:unsignedLongBigInteger. See BasicValueUnsignedLong for example.
xsd:unsignedIntBigInteger. See BasicValueUnsignedInt for example.
xsd:unsignedShortBigInteger. See BasicValueUnsignedShort for example.
xsd:unsignedByteBigInteger. See BasicValueUnsignedByte for example.
xsd:hexBinaryByteBuffer. See BasicValueHexBinary for example.
xsd:base64BinaryByteBuffer. See BasicValueBase64Binary for example.
xsd:dateTimeDate. See BasicValueDateTime for example.
xsd:timeDate. See BasicValueTime for example.
xsd:dateDate. See BasicValueDate for example.
xsd:gYearMonthDate. See BasicValueYearMonth for example.
xsd:gYearDate. See BasicValueYear for example.
xsd:gMonthDayDate. See BasicValueMonthDay for example.
xsd:gDayDate. See BasicValueDay for example.
xsd:gMonthDate. See BasicValueMonth for example.
xsd:anyURIURI. See BasicValueURI for example.
xsd:tokenString constrained to token. See BasicValueToken for example.
xsd:languageString constrained to language. See BasicValueLanguage for example.
xsd:NMTOKENString constrained to NMTOKEN. See BasicValueNMTOKEN for example.
xsd:NameString constrained to Name. See BasicValueName for example.
xsd:NCNameString constrained to NCName. See BasicValueNCName for example.
ObjectProperty types{TODO: need class which is a container of IAttributes}

Specified by:
getData in interface IPropertyValue
Throws:
IdASException