|
||||||||
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.DurationValue
Field Summary | |
static int |
DAY
|
static int |
HOUR
|
static int |
MINUTE
|
static int |
MONTH
|
static int |
YEAR
|
Fields inherited from class org.exist.xquery.value.AtomicValue |
EMPTY_VALUE |
Fields inherited from interface org.exist.xquery.value.Sequence |
EMPTY_SEQUENCE |
Constructor Summary | |
DurationValue(javax.xml.datatype.Duration duration)
|
|
DurationValue(java.lang.String str)
|
Method Summary | |
int |
compareTo(java.text.Collator collator,
AtomicValue other)
|
boolean |
compareTo(java.text.Collator collator,
int operator,
AtomicValue other)
|
int |
conversionPreference(java.lang.Class target)
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. |
javax.xml.datatype.Duration |
getCanonicalDuration()
|
int |
getPart(int part)
|
double |
getSeconds()
|
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 . |
AtomicValue |
max(java.text.Collator collator,
AtomicValue other)
|
AtomicValue |
min(java.text.Collator collator,
AtomicValue other)
|
ComputableValue |
minus(ComputableValue other)
|
ComputableValue |
mult(ComputableValue other)
|
DurationValue |
negate()
|
ComputableValue |
plus(ComputableValue other)
|
java.lang.Object |
toJavaObject(java.lang.Class target)
Convert the value into an instance of the specified Java class. |
static DurationValue |
wrap(javax.xml.datatype.Duration duration)
Create a new duration value of the most specific type allowed by the fields set in the given duration object. |
Methods inherited from class org.exist.xquery.value.AtomicValue |
add, addAll, atomize, clearContext, compareTo, contains, copyTo, deserialize, dump, endsWith, getCardinality, getDocumentSet, getItemType, getLength, hasMany, hasOne, isCached, isEmpty, isPersistentSet, itemAt, 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 int YEAR
public static final int MONTH
public static final int DAY
public static final int HOUR
public static final int MINUTE
Constructor Detail |
public DurationValue(javax.xml.datatype.Duration duration)
public DurationValue(java.lang.String str) throws XPathException
Method Detail |
public static DurationValue wrap(javax.xml.datatype.Duration duration)
duration
- the duration to wrap
DurationValue
public javax.xml.datatype.Duration getCanonicalDuration()
public int getType()
Item
Type
.
getType
in interface Item
getType
in class AtomicValue
public DurationValue negate() throws XPathException
XPathException
public java.lang.String getStringValue()
Item
getStringValue
in interface Item
getStringValue
in class ComputableValue
public int getPart(int part)
public double getSeconds()
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 ComputableValue
XPathException
public boolean compareTo(java.text.Collator collator, int operator, AtomicValue other) throws XPathException
compareTo
in class ComputableValue
XPathException
public int compareTo(java.text.Collator collator, AtomicValue other) throws XPathException
compareTo
in class ComputableValue
XPathException
public AtomicValue max(java.text.Collator collator, AtomicValue other) throws XPathException
max
in class ComputableValue
XPathException
public AtomicValue min(java.text.Collator collator, AtomicValue other) throws XPathException
min
in class ComputableValue
XPathException
public ComputableValue plus(ComputableValue other) throws XPathException
plus
in class ComputableValue
XPathException
public ComputableValue minus(ComputableValue other) throws XPathException
minus
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 int conversionPreference(java.lang.Class target)
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 boolean effectiveBooleanValue() throws XPathException
Sequence
effectiveBooleanValue
in interface Sequence
effectiveBooleanValue
in class AtomicValue
XPathException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |