|
||||||||
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.QNameValue
Wrapper class around a QName
value which extends
AtomicValue
.
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 | |
QNameValue(XQueryContext context,
QName name)
|
|
QNameValue(XQueryContext context,
java.lang.String name)
Constructs a new QNameValue by parsing the given name using the namespace declarations in context. |
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 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. |
boolean |
effectiveBooleanValue()
Get the effective boolean value of this sequence. |
QName |
getQName()
Returns the wrapped QName object. |
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)
|
java.lang.Object |
toJavaObject(java.lang.Class target)
Convert the value into an instance of the specified Java class. |
java.lang.String |
toString()
|
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, unorderedIterator |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QNameValue(XQueryContext context, java.lang.String name) throws XPathException
context
- name
-
XPathException
public QNameValue(XQueryContext context, QName name)
Method Detail |
public int getType()
Item
Type
.
getType
in interface Item
getType
in class AtomicValue
AtomicValue.getType()
public QName getQName()
public java.lang.String getStringValue() throws XPathException
Item
getStringValue
in interface Item
getStringValue
in class AtomicValue
XPathException
Sequence.getStringValue()
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 AtomicValue
XPathException
Sequence.convertTo(int)
public boolean compareTo(java.text.Collator collator, int operator, AtomicValue other) throws XPathException
compareTo
in class AtomicValue
XPathException
AtomicValue.compareTo(Collator, int, AtomicValue)
public int compareTo(java.text.Collator collator, AtomicValue other) throws XPathException
compareTo
in class AtomicValue
XPathException
AtomicValue.compareTo(Collator, AtomicValue)
public AtomicValue max(java.text.Collator collator, AtomicValue other) throws XPathException
max
in class AtomicValue
XPathException
AtomicValue.max(Collator, AtomicValue)
public AtomicValue min(java.text.Collator collator, AtomicValue other) throws XPathException
min
in class AtomicValue
XPathException
public int conversionPreference(java.lang.Class javaClass)
Sequence
conversionPreference
in interface Item
conversionPreference
in class AtomicValue
Item.conversionPreference(java.lang.Class)
public java.lang.Object toJavaObject(java.lang.Class target) throws XPathException
Sequence
toJavaObject
in interface Item
toJavaObject
in class AtomicValue
XPathException
Item.toJavaObject(java.lang.Class)
public java.lang.String toString()
toString
in class AtomicValue
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 |