|
|||||||
| 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.JavaObjectValue
public class JavaObjectValue
Represents a reference to an arbitrary Java object which is treated as an atomic value.
| Field Summary |
|---|
| Fields inherited from class org.exist.xquery.value.AtomicValue |
|---|
EMPTY_VALUE |
| Fields inherited from interface org.exist.xquery.value.Sequence |
|---|
EMPTY_SEQUENCE |
| Constructor Summary | |
|---|---|
JavaObjectValue(Object object)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Collator collator,
AtomicValue other)
|
boolean |
compareTo(Collator collator,
int operator,
AtomicValue other)
|
int |
conversionPreference(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. |
Object |
getObject()
|
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(Collator collator,
AtomicValue other)
|
AtomicValue |
min(Collator collator,
AtomicValue other)
|
Object |
toJavaObject(Class target)
Convert the value into an instance of the specified Java class. |
| Methods inherited from class org.exist.xquery.value.AtomicValue |
|---|
add, addAll, atomize, clearContext, compareTo, contains, copyTo, dump, effectiveBooleanValue, endsWith, getCardinality, getCollectionIterator, getDocumentSet, getItemCount, getItemType, hasMany, hasOne, isCached, isEmpty, isPersistentSet, itemAt, iterate, nodeMoved, promote, removeDuplicates, serializeValue, setIsCached, setSelfAsContext, startsWith, toNodeSet, toSAX, toSequence, toString, unorderedIterator |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JavaObjectValue(Object object)
| Method Detail |
|---|
public int getType()
ItemType.
getType in interface IndexablegetType in interface ItemgetType in class AtomicValuepublic Object getObject()
public String getStringValue()
Item
getStringValue in interface ItemgetStringValue in interface SequencegetStringValue in class AtomicValue
public AtomicValue convertTo(int requiredType)
throws XPathException
ItemType. An XPathException is thrown
if the conversion is impossible.
convertTo in interface ItemconvertTo in interface SequenceconvertTo in class AtomicValuerequiredType - one of the type constants defined in class Type
XPathException
public boolean compareTo(Collator collator,
int operator,
AtomicValue other)
throws XPathException
compareTo in class AtomicValueXPathException
public int compareTo(Collator collator,
AtomicValue other)
throws XPathException
compareTo in class AtomicValueXPathException
public AtomicValue max(Collator collator,
AtomicValue other)
throws XPathException
max in class AtomicValueXPathException
public AtomicValue min(Collator collator,
AtomicValue other)
throws XPathException
min in class AtomicValueXPathExceptionpublic int conversionPreference(Class javaClass)
Sequence
conversionPreference in interface ItemconversionPreference in interface SequenceconversionPreference in class AtomicValue
public Object toJavaObject(Class target)
throws XPathException
Sequence
toJavaObject in interface ItemtoJavaObject in interface SequencetoJavaObject in class AtomicValueXPathException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||