|
||||||||
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.AnyURIValue
Field Summary | |
static AnyURIValue |
EMPTY_URI
|
Fields inherited from class org.exist.xquery.value.AtomicValue |
EMPTY_VALUE |
Fields inherited from interface org.exist.xquery.value.Sequence |
EMPTY_SEQUENCE |
Constructor Summary | |
AnyURIValue(java.lang.String s)
|
|
AnyURIValue(java.net.URI uri)
|
|
AnyURIValue(XmldbURI uri)
|
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. |
static java.lang.String |
escape(java.lang.String uri)
This function accepts a String representation of an xs:anyURI and applies the escaping method described in Section 5.4 of XML Linking (http://www.w3.org/TR/2000/PR-xlink-20001220/#link-locators) to turn it into a valid URI |
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.net.URI |
toURI()
|
XmldbURI |
toXmldbURI()
|
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 AnyURIValue EMPTY_URI
Constructor Detail |
public AnyURIValue(java.net.URI uri)
public AnyURIValue(XmldbURI uri)
public AnyURIValue(java.lang.String s) throws XPathException
Method Detail |
public static java.lang.String escape(java.lang.String uri)
uri
- The xs:anyURI to escape into a valid URI
public int getType()
Item
Type
.
getType
in interface Item
getType
in class AtomicValue
public java.lang.String getStringValue() throws XPathException
Item
getStringValue
in interface Item
getStringValue
in class AtomicValue
XPathException
public boolean effectiveBooleanValue() throws XPathException
Sequence
effectiveBooleanValue
in interface Sequence
effectiveBooleanValue
in class AtomicValue
XPathException
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
public boolean compareTo(java.text.Collator collator, int operator, AtomicValue other) throws XPathException
compareTo
in class AtomicValue
XPathException
public int compareTo(java.text.Collator collator, AtomicValue other) throws XPathException
compareTo
in class AtomicValue
XPathException
public AtomicValue max(java.text.Collator collator, AtomicValue other) throws XPathException
max
in class AtomicValue
XPathException
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
public java.lang.Object toJavaObject(java.lang.Class target) throws XPathException
Sequence
toJavaObject
in interface Item
toJavaObject
in class AtomicValue
XPathException
public XmldbURI toXmldbURI() throws XPathException
XPathException
public java.net.URI toURI() throws XPathException
XPathException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |