org.exist.xquery.value
Class FunctionReference
java.lang.Object
org.exist.xquery.value.AtomicValue
org.exist.xquery.value.FunctionReference
- All Implemented Interfaces:
- Comparable, Indexable, Item, Sequence
public class FunctionReference
- extends AtomicValue
Represents a reference to a function created by util:function that can be
used with util:call.
- Author:
- wolf
Methods inherited from class org.exist.xquery.value.AtomicValue |
add, addAll, atomize, clearContext, compareTo, contains, conversionPreference, copyTo, dump, endsWith, getCardinality, getCollectionIterator, getDocumentSet, getItemCount, getItemType, getState, hasChanged, hasMany, hasOne, isCacheable, isCached, isEmpty, isPersistentSet, itemAt, iterate, nodeMoved, promote, removeDuplicates, serializeValue, setIsCached, setSelfAsContext, startsWith, toJavaObject, toNodeSet, toSAX, toSequence, toString, unorderedIterator |
FunctionReference
public FunctionReference(FunctionCall fcall)
getFunctionCall
public FunctionCall getFunctionCall()
getType
public int getType()
- Description copied from interface:
Item
- Return the type of this item according to the type constants defined in class
Type
.
- Specified by:
getType
in interface Indexable
- Specified by:
getType
in interface Item
- Overrides:
getType
in class AtomicValue
- Returns:
- Type of the Indexable
getStringValue
public 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 interface Sequence
- Specified by:
getStringValue
in class AtomicValue
- Throws:
XPathException
convertTo
public 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.
- Parameters:
requiredType
- one of the type constants defined in class Type
- Throws:
XPathException
effectiveBooleanValue
public boolean effectiveBooleanValue()
throws XPathException
- Description copied from interface:
Sequence
- Get the effective boolean value of this sequence. Will be false if the sequence is empty,
true otherwise.
- Specified by:
effectiveBooleanValue
in interface Sequence
- Specified by:
effectiveBooleanValue
in class AtomicValue
- Throws:
XPathException
compareTo
public boolean compareTo(Collator collator,
int operator,
AtomicValue other)
throws XPathException
- Specified by:
compareTo
in class AtomicValue
- Throws:
XPathException
compareTo
public int compareTo(Collator collator,
AtomicValue other)
throws XPathException
- Specified by:
compareTo
in class AtomicValue
- Throws:
XPathException
max
public AtomicValue max(Collator collator,
AtomicValue other)
throws XPathException
- Specified by:
max
in class AtomicValue
- Throws:
XPathException
min
public AtomicValue min(Collator collator,
AtomicValue other)
throws XPathException
- Specified by:
min
in class AtomicValue
- Throws:
XPathException
Copyright (C) Wolfgang Meier. All rights reserved.