public final class DoubleValueHolder extends Object implements IDoubleValueHolder
Constructor and Description |
---|
DoubleValueHolder(double p_dblValue) |
DoubleValueHolder(Number p_numValue) |
DoubleValueHolder(Object p_value) |
Modifier and Type | Method and Description |
---|---|
String |
getCanonicalLexicalRepresentation()
Get the canonical lexical representation of this value
according to it's datatype.
|
Object |
getRawValue()
Get the raw data that this value holder holds.
|
QName |
getType()
The type of data this value holder holds.
|
Double |
getValue()
Get the data that this value holder holds.
|
boolean |
hasValue()
Check if this value holder currently holds data or not.
|
public DoubleValueHolder(double p_dblValue)
public DoubleValueHolder(Number p_numValue)
public DoubleValueHolder(Object p_value)
public Object getRawValue()
IValueHolder
getRawValue
in interface IValueHolder<Double>
public QName getType()
IValueHolder
getType
in interface IValueHolder<Double>
IxDatatype.DOUBLE
.public Double getValue()
IValueHolder
Implementations MUST ensure that multiple calls to this method will return values that equal each other.
getValue
in interface IValueHolder<Double>
public boolean hasValue()
IValueHolder
hasValue
in interface IValueHolder<Double>
true
if the data holder holds data,
or false
otherwise.public String getCanonicalLexicalRepresentation()
IValueHolder
getCanonicalLexicalRepresentation
in interface IValueHolder<Double>
null
if hasValue()
is false
.Convert.getCanonicalLexicalRepresentation(Double)