|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Sequence
Interface for all sequences that can be wrapped to an XDMSequence
| Method Summary | |
|---|---|
XdmItem |
first()
Get the first (if any) item in the sequence. |
String |
getStringValue()
Return the string value of the items in the sequence. |
boolean |
hasCommonType()
Checks whether all items in this sequence have the same type (i.e. xs:integer or node()). |
boolean |
hasValues()
Checks whether the sequence contains at least one value (as opposed to nodes). |
boolean |
isEmpty()
Checks whether the sequence is empty. |
XdmItemIterator |
iterator()
Returns an iterator over this sequence. |
Sequence |
subSequence(long first,
Double length)
Returns a subsequence of this sequence with the given parameters. |
| Method Detail |
|---|
XdmItem first()
throws RuntimeException
RuntimeException - thrown, if there is no first item (empty list).boolean isEmpty()
String getStringValue()
boolean hasValues()
Sequence subSequence(long first,
Double length)
throws XPathException
first - the first item to include.length - the number of items to include.
XPathException - thrown, if an error occurred (i.e. no more memory)XdmItemIterator iterator()
boolean hasCommonType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||