org.exist.xquery.value
Class NumericValue
java.lang.Object
org.exist.xquery.value.AtomicValue
org.exist.xquery.value.ComputableValue
org.exist.xquery.value.NumericValue
- All Implemented Interfaces:
- Item, Sequence
- Direct Known Subclasses:
- DecimalValue, DoubleValue, FloatValue, IntegerValue
- public abstract class NumericValue
- extends ComputableValue
| Methods inherited from class org.exist.xquery.value.AtomicValue |
add, addAll, atomize, clearContext, contains, conversionPreference, copyTo, dump, effectiveBooleanValue, endsWith, getCardinality, getDocumentSet, getItemType, getLength, getType, isCached, isPersistentSet, itemAt, iterate, removeDuplicates, setIsCached, setSelfAsContext, startsWith, toJavaObject, toNodeSet, toSAX, toSequence, toString, unorderedIterator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NumericValue
public NumericValue()
getStringValue
public abstract java.lang.String getStringValue()
throws XPathException
- Description copied from interface:
Item
- Return the string value of this item (see the definition of string value in XPath).
- Specified by:
getStringValue in interface Item- Specified by:
getStringValue in class ComputableValue
- Throws:
XPathException
convertTo
public abstract AtomicValue convertTo(int requiredType)
throws XPathException
- Description copied from interface:
Item
- Convert this item into an atomic value, whose type corresponds to
the specified target type. requiredType should be one of the type
constants defined in
Type. An XPathException is thrown
if the conversion is impossible.
- Specified by:
convertTo in interface Item- Specified by:
convertTo in class ComputableValue
- Throws:
XPathException
getDouble
public double getDouble()
throws XPathException
- Throws:
XPathException
getLong
public long getLong()
throws XPathException
- Throws:
XPathException
getInt
public int getInt()
throws XPathException
- Throws:
XPathException
isNaN
public boolean isNaN()
compareTo
public boolean compareTo(java.text.Collator collator,
int operator,
AtomicValue other)
throws XPathException
- Specified by:
compareTo in class ComputableValue
- Throws:
XPathException
compareTo
public int compareTo(java.text.Collator collator,
AtomicValue other)
throws XPathException
- Specified by:
compareTo in class ComputableValue
- Throws:
XPathException
negate
public abstract NumericValue negate()
throws XPathException
- Throws:
XPathException
ceiling
public abstract NumericValue ceiling()
throws XPathException
- Throws:
XPathException
floor
public abstract NumericValue floor()
throws XPathException
- Throws:
XPathException
round
public abstract NumericValue round()
throws XPathException
- Throws:
XPathException
round
public abstract NumericValue round(IntegerValue precision)
throws XPathException
- Throws:
XPathException
mod
public abstract NumericValue mod(NumericValue other)
throws XPathException
- Throws:
XPathException
idiv
public abstract IntegerValue idiv(NumericValue other)
throws XPathException
- Throws:
XPathException
abs
public abstract NumericValue abs()
throws XPathException
- Throws:
XPathException
max
public abstract AtomicValue max(java.text.Collator collator,
AtomicValue other)
throws XPathException
- Specified by:
max in class ComputableValue
- Throws:
XPathException
min
public abstract AtomicValue min(java.text.Collator collator,
AtomicValue other)
throws XPathException
- Specified by:
min in class ComputableValue
- Throws:
XPathException
<oXygen/>
XML Editor
provides support for editing and debugging XQuery
expressions against the eXist XML Database.