Package org.eclipse.wst.xml.xpath2.api
public class ResultSequence extendsImmutable representation of a result
Method Summary | |
public boolean | empty() Is the sequence empty. |
public org.eclipse.wst.xml.xpath2.api.Item | first() |
public java.lang.Object | firstValue() Return the native representation of the first item. |
public org.eclipse.wst.xml.xpath2.api.Item | item(int index) Return the item. |
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemType | itemType(int index) XPath2 type definition description of the item at location '0' |
public java.util.Iterator | iterator() Iterator of Item elements |
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemType | sequenceType() Describe the whole sequence's type. |
public int | size() Return the size of the result set. Only call this if you need it, since it may require that the entire result is fetched. |
public java.lang.Object | value(int index) Return the native representation of the item. |
Methods Detail |
public boolean empty()
Is the sequence empty.
boolean
- true for empty sequences
public org.eclipse.wst.xml.xpath2.api.Item first()
org.eclipse.wst.xml.xpath2.api.Item
public java.lang.Object firstValue()
Return the native representation of the first item.
java.lang.Object
- Native object representing the first item.
public org.eclipse.wst.xml.xpath2.api.Item item(int index)
Return the item.
index
org.eclipse.wst.xml.xpath2.api.Item
- Native object representing the item.
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemType itemType(int index)
XPath2 type definition description of the item at location '0'
index
org.eclipse.wst.xml.xpath2.api.typesystem.ItemType
public java.util.Iterator iterator()
Iterator of Item elements
java.util.Iterator
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemType sequenceType()
Describe the whole sequence's type.
org.eclipse.wst.xml.xpath2.api.typesystem.ItemType
- Item type definition.
public int size()
Return the size of the result set. Only call this if you need it, since it may require that the entire result is fetched.
int
- Count of items.
public java.lang.Object value(int index)
Return the native representation of the item.
index
java.lang.Object
- Native object representing the item.