Package org.eclipse.wst.xml.xpath2.api


org.eclipse.wst.xml.xpath2.api
Class ResultSequence



public class ResultSequence
extends 
Immutable representation of a result


Method Summary

public booleanempty()
     Is the sequence empty.
public org.eclipse.wst.xml.xpath2.api.Itemfirst()
    
public java.lang.ObjectfirstValue()
     Return the native representation of the first item.
public org.eclipse.wst.xml.xpath2.api.Itemitem(int index)
     Return the item.
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemTypeitemType(int index)
     XPath2 type definition description of the item at location '0'
public java.util.Iteratoriterator()
     Iterator of Item elements
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemTypesequenceType()
     Describe the whole sequence's type.
public intsize()
     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.Objectvalue(int index)
     Return the native representation of the item.

Methods Detail

empty

public boolean empty()

Is the sequence empty.

Returns

boolean - true for empty sequences


first

public org.eclipse.wst.xml.xpath2.api.Item first()

Returns

org.eclipse.wst.xml.xpath2.api.Item


firstValue

public java.lang.Object firstValue()

Return the native representation of the first item.

Returns

java.lang.Object - Native object representing the first item.


item

public org.eclipse.wst.xml.xpath2.api.Item item(int index)

Return the item.

Parameters

index

Returns

org.eclipse.wst.xml.xpath2.api.Item - Native object representing the item.


itemType

public org.eclipse.wst.xml.xpath2.api.typesystem.ItemType itemType(int index)

XPath2 type definition description of the item at location '0'

Parameters

index

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.ItemType


iterator

public java.util.Iterator iterator()

Iterator of Item elements

Returns

java.util.Iterator


sequenceType

public org.eclipse.wst.xml.xpath2.api.typesystem.ItemType sequenceType()

Describe the whole sequence's type.

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.ItemType - Item type definition.


size

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.

Returns

int - Count of items.


value

public java.lang.Object value(int index)

Return the native representation of the item.

Parameters

index

Returns

java.lang.Object - Native object representing the item.