|
XCC/J 6.0-3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XdmSequence<I extends XdmItem>
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<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 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 |
|---|
int size()
boolean isEmpty()
XdmItem[] toArray()
XdmItems from this XdmSequence.
XdmItem, possibly zero-length.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().Iterator<I> iterator()
XdmItem instances in this XdmSequence.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.
String asString()
asString ("\n").
asString in interface XdmValueString[] asStrings()
Strings, each of which is the value returned by the
XdmValue.asString() method for each item in the sequence.
Strings.String toString()
asString() or asStrings() methods to
obtain String representations of the item values.
toString in class ObjectasString(),
asStrings()
|
XCC/J 6.0-3 | ||||||||
| 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