org.eclipse.higgins.idas
Interface ISimpleValue

All Superinterfaces:
IPropertyValue
All Known Implementing Classes:
AbstractSimpleValue, 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 ISimpleValue
extends IPropertyValue


Field Summary
static java.lang.String BASE_XML_SCHEMA_URI
           
 
Fields inherited from interface org.eclipse.higgins.idas.IPropertyValue
BASE_OWL_URI
 
Method Summary
 java.lang.String getCanonical()
          Returns the canonical representation if this value is a literal
 java.lang.Object getData()
          Returns the underlying Java object holding this simple type's value.
 java.lang.String getLexical()
          Returns a lexical representation if this value is a literal
 
Methods inherited from interface org.eclipse.higgins.idas.IPropertyValue
getType, isSimple
 

Field Detail

BASE_XML_SCHEMA_URI

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

getLexical

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

Throws:
IdASException

getCanonical

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

Throws:
IdASException

getData

java.lang.Object getData()
                         throws IdASException
Returns the underlying Java object holding this simple type's value.

This table specifies the mappings between Higgins OWL datatypes (in the higgins ontology http://www.eclipse.org/higgins/ontologies/2006/higgins), XML schema types (in the http://www.w3.org/2001/XMLSchema namespace), Java classes (returned by getData()), and IdAS basic value implementations.

Higgins OWL typeXML schema typeJava classBasic Implementation
"stringSimpleValue""string"StringBasicValueString
"normalizedStringSimpleValue""normalizedString"String constrained to normalizedStringBasicValueNormalizedString
"booleanSimpleValue""boolean"BooleanBasicValueBoolean
"decimalSimpleValue""decimal"BigDecimalBasicValueDecimal
"integerSimpleValue""integer"BigIntegerBasicValueInteger
"nonNegativeIntegerSimpleValue""nonNegativeInteger"BigIntegerBasicValueNonNegativeInteger
"positiveIntegerSimpleValue""positiveInteger"BigIntegerBasicValuePositiveInteger
"nonPositiveIntegerSimpleValue""nonPositiveInteger"BigIntegerBasicValueNonPositiveInteger
"negativeIntegerSimpleValue""negativeInteger"BigIntegerBasicValueNegativeInteger
"floatSimpleValue""float"FloatBasicValueFloat
"doubleSimpleValue""double"DoubleBasicValueDouble
"longSimpleValue""long"LongBasicValueLong
"intSimpleValue""int"IntegerBasicValueInteger
"shortSimpleValue""short"ShortBasicValueShort
"byteSimpleValue""byte"ByteBasicValueByte
"unsignedLongSimpleValue""unsignedLong"BigIntegerBasicValueUnsignedLong
"unsignedtIntSimpleValue""unsignedtInt"BigIntegerBasicValueUnsignedInt
"unsignedShortSimpleValue""unsignedShort"BigIntegerBasicValueUnsignedShort
"unsignedByteSimpleValue""unsignedByte"BigIntegerBasicValueUnsignedByte
"hexBinarySimpleValue""hexBinary"ByteBufferBasicValueHexBinary
"base64BinarySimpleValue""base64Binary"ByteBufferBasicValueBase64Binary
"dateTimeSimpleValue""dateTime"DateBasicValueDateTime
"timeSimpleValue""time"DateBasicValueTime
"dateSimpleValue""date"DateBasicValueDate
"gYearMonthSimpleValue""gYearMonth"DateBasicValueGYearMonth
"gYearSimpleValue""gYear"DateBasicValueGYear
"gMonthDaySimpleValue""gMonthDay"DateBasicValueGMonthDay
"gDaySimpleValue""gDay"DateBasicValueGDay
"gMonthSimpleValue""gMonth"DateBasicValueGMonth
"anyURISimpleValue""anyURI"URIBasicValueAnyURI
"tokenSimpleValue""token"String constrained to tokenBasicValueToken
"languageSimpleValue""language"String constrained to languageBasicValueLanguage
"NMTokenSimpleValue""NMToken"String constrained to NMTOKENBasicValueNMTOKEN
"NameSimpleValue""Name"String constrained to NameBasicValueName
"NCNameSimpleValue""NCName"String constrained to NCNameBasicValueNCName

Specified by:
getData in interface IPropertyValue
Throws:
IdASException