|
XCC/J 3.2-9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A XdmValue which is a sequence of Items.
| Method Summary | |
String |
asString()
This method is equivalent to asString ("\n"). |
String |
asString(String separator)
Returns a String comprised of XdmValue.asString()
value of each item in the sequence with the given separator string
between each. |
String[] |
asStrings()
Returns an array of Strings, each of which is the value
returned by the XdmValue.asString()
method for each item in the sequence. |
boolean |
isEmpty()
Indicates whether this XdmSequence is empty. |
XdmItem |
itemAt(int index)
Return the XdmItem at the given position
from this XdmSequence. |
Iterator |
iterator()
A java.util.Iterator instance that iterates over the items in this XdmSequence. |
int |
size()
Returns the size of this XdmSequence. |
XdmItem[] |
toArray()
Construct an array of XdmItems from
this XdmSequence. |
String |
toString()
Return a textual description of this XdmSequence object, NOT the value of the items in the sequence. |
| Methods inherited from interface com.marklogic.xcc.types.XdmValue |
getValueType |
| Method Detail |
public int size()
public boolean isEmpty()
public XdmItem[] toArray()
XdmItems from
this XdmSequence.
XdmItem, possibly zero-length.public XdmItem itemAt(int index)
XdmItem at the given position
from this XdmSequence.
index - The index of the XdmItem (zero-based) to return.
XdmItem instance.
IllegalArgumentException - If index is negative or
is greater than or equal to size().public Iterator iterator()
XdmItem instances in this XdmSequence.public String asString(String separator)
XdmValue.asString()
value of each item in the sequence with the given separator string
between each. If the sequence is empty (isEmpty() is true)
then the empty string is returned.
separator - A separator string, such as "\n", to be inserted
between the XdmValue.asString() value
of each item in the sequence. A value of null is equivalent to the
empty string which causes all items to be concatenated with no separator.
public String asString()
asString ("\n").
asString in interface XdmValuepublic String[] asStrings()
Strings, each of which is the value
returned by the XdmValue.asString()
method for each item in the sequence.
Strings.public String toString()
asString() or asStrings() methods
to obtain String representations of the item values.
asString(),
asStrings()
|
XCC/J 3.2-9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com