|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xquery.value.AtomicValue
org.exist.xquery.value.ComputableValue
org.exist.xquery.value.NumericValue
org.exist.xquery.value.DoubleValue
Field Summary | |
static DoubleValue |
NaN
|
static DoubleValue |
NEGATIVE_INFINITY
|
static DoubleValue |
POSITIVE_INFINITY
|
static DoubleValue |
ZERO
|
Fields inherited from class org.exist.xquery.value.AtomicValue |
EMPTY_VALUE |
Fields inherited from interface org.exist.xquery.value.Sequence |
EMPTY_SEQUENCE |
Constructor Summary | |
DoubleValue(AtomicValue otherValue)
|
|
DoubleValue(double value)
|
Method Summary | |
NumericValue |
abs()
|
NumericValue |
ceiling()
|
int |
compareTo(java.lang.Object o)
|
int |
conversionPreference(java.lang.Class javaClass)
Returns a preference indicator, indicating the preference of a value to be converted into the given Java class. |
AtomicValue |
convertTo(int requiredType)
Convert this item into an atomic value, whose type corresponds to the specified target type. |
ComputableValue |
div(ComputableValue other)
|
boolean |
effectiveBooleanValue()
Get the effective boolean value of this sequence. |
NumericValue |
floor()
|
double |
getDouble()
|
int |
getInt()
|
long |
getLong()
|
int |
getSerializedSize()
size writen by AtomicValue.serialize(short, boolean) |
java.lang.String |
getStringValue()
Return the string value of this item (see the definition of string value in XPath). |
int |
getType()
Return the type of this item according to the type constants defined in class Type . |
double |
getValue()
|
IntegerValue |
idiv(NumericValue other)
|
boolean |
isInfinite()
|
boolean |
isNaN()
|
Item |
itemAt(int pos)
Returns the item located at the specified position within this sequence. |
AtomicValue |
max(java.text.Collator collator,
AtomicValue other)
|
AtomicValue |
min(java.text.Collator collator,
AtomicValue other)
|
ComputableValue |
minus(ComputableValue other)
|
NumericValue |
mod(NumericValue other)
|
ComputableValue |
mult(ComputableValue other)
|
NumericValue |
negate()
|
ComputableValue |
plus(ComputableValue other)
|
NumericValue |
round()
|
NumericValue |
round(IntegerValue precision)
|
void |
setValue(double val)
|
java.lang.Object |
toJavaObject(java.lang.Class target)
Convert the value into an instance of the specified Java class. |
Methods inherited from class org.exist.xquery.value.NumericValue |
compareTo, compareTo |
Methods inherited from class org.exist.xquery.value.AtomicValue |
add, addAll, atomize, clearContext, contains, copyTo, deserialize, dump, endsWith, getCardinality, getDocumentSet, getItemType, getLength, hasMany, hasOne, isCached, isEmpty, isPersistentSet, iterate, promote, removeDuplicates, serialize, serializeValue, setIsCached, setSelfAsContext, startsWith, toNodeSet, toSAX, toSequence, toString, unorderedIterator |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final DoubleValue ZERO
public static final DoubleValue POSITIVE_INFINITY
public static final DoubleValue NEGATIVE_INFINITY
public static final DoubleValue NaN
Constructor Detail |
public DoubleValue(double value)
public DoubleValue(AtomicValue otherValue) throws XPathException
Method Detail |
public int getType()
Item
Type
.
getType
in interface Item
getType
in class AtomicValue
public java.lang.String getStringValue()
Item
getStringValue
in interface Item
getStringValue
in class NumericValue
public double getValue()
public Item itemAt(int pos)
Sequence
itemAt
in interface Sequence
itemAt
in class AtomicValue
public boolean isNaN()
isNaN
in class NumericValue
public boolean isInfinite()
isInfinite
in class NumericValue
public AtomicValue convertTo(int requiredType) throws XPathException
Item
Type
. An XPathException
is thrown
if the conversion is impossible.
convertTo
in interface Item
convertTo
in class NumericValue
XPathException
public boolean effectiveBooleanValue() throws XPathException
Sequence
effectiveBooleanValue
in interface Sequence
effectiveBooleanValue
in class AtomicValue
XPathException
public double getDouble() throws XPathException
getDouble
in class NumericValue
XPathException
public int getInt() throws XPathException
getInt
in class NumericValue
XPathException
public long getLong() throws XPathException
getLong
in class NumericValue
XPathException
public void setValue(double val)
public NumericValue ceiling() throws XPathException
ceiling
in class NumericValue
XPathException
public NumericValue floor() throws XPathException
floor
in class NumericValue
XPathException
public NumericValue round() throws XPathException
round
in class NumericValue
XPathException
public NumericValue round(IntegerValue precision) throws XPathException
round
in class NumericValue
XPathException
public ComputableValue minus(ComputableValue other) throws XPathException
minus
in class ComputableValue
XPathException
public ComputableValue plus(ComputableValue other) throws XPathException
plus
in class ComputableValue
XPathException
public ComputableValue mult(ComputableValue other) throws XPathException
mult
in class ComputableValue
XPathException
public ComputableValue div(ComputableValue other) throws XPathException
div
in class ComputableValue
XPathException
public IntegerValue idiv(NumericValue other) throws XPathException
idiv
in class NumericValue
XPathException
public NumericValue mod(NumericValue other) throws XPathException
mod
in class NumericValue
XPathException
public NumericValue negate() throws XPathException
negate
in class NumericValue
XPathException
public NumericValue abs() throws XPathException
abs
in class NumericValue
XPathException
public AtomicValue max(java.text.Collator collator, AtomicValue other) throws XPathException
max
in class NumericValue
XPathException
public AtomicValue min(java.text.Collator collator, AtomicValue other) throws XPathException
min
in class NumericValue
XPathException
public int conversionPreference(java.lang.Class javaClass)
Sequence
conversionPreference
in interface Item
conversionPreference
in class AtomicValue
public java.lang.Object toJavaObject(java.lang.Class target) throws XPathException
Sequence
toJavaObject
in interface Item
toJavaObject
in class AtomicValue
XPathException
public int getSerializedSize()
AtomicValue.serialize(short, boolean)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
compareTo
in class AtomicValue
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |