public interface XdmSequence<I extends XdmItem> extends XdmValue
XdmValue
which is a sequence of Items.Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString()
This method is equivalent to
asString ("\n") . |
java.lang.String |
asString(java.lang.String separator)
Returns a String comprised of
XdmValue.asString() value of
each item in the sequence with the given separator string between each. |
java.lang.String[] |
asStrings()
Returns an array of
String s, 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. |
java.util.Iterator<I> |
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
XdmItem s from this XdmSequence . |
java.lang.String |
toString()
Return a textual description of this XdmSequence object, NOT the value of
the items in the sequence.
|
getValueType
int size()
boolean isEmpty()
XdmItem[] toArray()
XdmItem
s from this XdmSequence
.XdmItem
, possibly zero-length.java.util.Iterator<I> iterator()
XdmItem
instances in this XdmSequence.java.lang.String asString(java.lang.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.java.lang.String asString()
asString ("\n")
.java.lang.String[] asStrings()
String
s, each of which is the value returned by the
XdmValue.asString()
method for each item in the sequence.String
s.java.lang.String toString()
asString()
or asStrings()
methods to
obtain String
representations of the item values.toString
in class java.lang.Object
asString()
,
asStrings()
Copyright © 2019 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com