|
|||||||
| 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
public class 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(String s)
|
|
AnyURIValue(URI uri)
|
|
AnyURIValue(XmldbURI uri)
|
|
| 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. |
boolean |
effectiveBooleanValue()
Get the effective boolean value of this sequence. |
static String |
escape(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 |
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. |
URI |
toURI()
|
XmldbURI |
toXmldbURI()
|
| Methods inherited from class org.exist.xquery.value.AtomicValue |
|---|
add, addAll, atomize, clearContext, compareTo, contains, copyTo, dump, 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 |
| Field Detail |
|---|
public static final AnyURIValue EMPTY_URI
| Constructor Detail |
|---|
public AnyURIValue(URI uri)
public AnyURIValue(XmldbURI uri)
public AnyURIValue(String s)
throws XPathException
XPathException| Method Detail |
|---|
public static String escape(String uri)
uri - The xs:anyURI to escape into a valid URI
public int getType()
ItemType.
getType in interface IndexablegetType in interface ItemgetType in class AtomicValue
public String getStringValue()
throws XPathException
Item
getStringValue in interface ItemgetStringValue in interface SequencegetStringValue in class AtomicValueXPathException
public boolean effectiveBooleanValue()
throws XPathException
Sequence
effectiveBooleanValue in interface SequenceeffectiveBooleanValue in class AtomicValueXPathException
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
public XmldbURI toXmldbURI()
throws XPathException
XPathException
public URI toURI()
throws XPathException
XPathException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||