org.eclipse.higgins.idas.impl
Class BasicValueDecimal
java.lang.Object
org.eclipse.higgins.idas.impl.AbstractSimpleValue
org.eclipse.higgins.idas.impl.BasicValueDecimal
- All Implemented Interfaces:
- IPropertyValue, ISimpleValue
public class BasicValueDecimal
- extends AbstractSimpleValue
- implements ISimpleValue
Method Summary |
java.lang.String |
getCanonical()
Returns a string representation of teh backing BigDecimal without an exponent field. |
java.lang.Object |
getData()
Returns the BigDecimal backing this value. |
java.lang.String |
getLexical()
Default implementation of getLexical calls toString() on the backing datatype. |
java.net.URI |
getType()
Returns a URI for "http://www.w3.org/2001/XMLSchema#decimal" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_TYPE_STR
public static final java.lang.String XML_TYPE_STR
- See Also:
- Constant Field Values
OWL_TYPE_STR
public static final java.lang.String OWL_TYPE_STR
- See Also:
- Constant Field Values
ATTR_VALUE_URI_STR
public static final java.lang.String ATTR_VALUE_URI_STR
- See Also:
- Constant Field Values
ATTR_VALUE_TYPE_URI_STR
public static final java.lang.String ATTR_VALUE_TYPE_URI_STR
- See Also:
- Constant Field Values
BasicValueDecimal
public BasicValueDecimal(java.lang.String value)
getLexical
public java.lang.String getLexical()
throws IdASException
- Description copied from class:
AbstractSimpleValue
- Default implementation of getLexical calls toString() on the backing datatype.
- Specified by:
getLexical
in interface ISimpleValue
- Overrides:
getLexical
in class AbstractSimpleValue
- Throws:
IdASException
getCanonical
public java.lang.String getCanonical()
throws IdASException
- Returns a string representation of teh backing
BigDecimal
without an exponent field.
- Specified by:
getCanonical
in interface ISimpleValue
- Overrides:
getCanonical
in class AbstractSimpleValue
- Throws:
IdASException
getData
public java.lang.Object getData()
throws IdASException
- Returns the
BigDecimal
backing this value.
- Specified by:
getData
in interface IPropertyValue
- Specified by:
getData
in interface ISimpleValue
- Throws:
IdASException
getType
public java.net.URI getType()
throws IdASException
- Returns a URI for "http://www.w3.org/2001/XMLSchema#decimal"
- Specified by:
getType
in interface IPropertyValue
- Returns:
- The OWL type for this property's value.
- Throws:
IdASException