Package org.eclipse.wst.xml.xpath2.processor


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



public class ResultSequence
extends java.lang.Object
Interface to the methods of range of result sequence


Constructor Summary

ResultSequence()

Method Summary

public voidadd(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType item)
     add item
public voidclear()
     clear
public voidconcat(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)
     concatinate from rs
public org.eclipse.wst.xml.xpath2.processor.ResultSequencecreate_new()
     create a new result sequence
public booleanempty()
     check is the sequence is empty
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyTypefirst()
     retrieve the first item
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyTypeget(int i)
     get item in index i
public org.eclipse.wst.xml.xpath2.api.Itemitem(int index)
    
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemTypeitemType(int index)
    
public java.util.ListIteratoriterator()
     List Iterator.
public voidrelease()
     release the result sequence
public intsize()
     get the size
public java.lang.Stringstring()
     retrieve items in sequence
public java.lang.Objectvalue(int index)
    

Constructor Detail

ResultSequence

public ResultSequence()


Methods Detail

add

public void add(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType item)

add item

Parameters

item - is an item of any type.


clear

public void clear()

clear


concat

public void concat(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)

concatinate from rs

Parameters

rs - is a Result Sequence.


create_new

public org.eclipse.wst.xml.xpath2.processor.ResultSequence create_new()

create a new result sequence

Returns

org.eclipse.wst.xml.xpath2.processor.ResultSequence - a new result sequence.


empty

public boolean empty()

check is the sequence is empty

Returns

boolean - boolean.


first

public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType first()

retrieve the first item

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType - the first item.


get

public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType get(int i)

get item in index i

Parameters

i - is the position.

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType


item

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

Parameters

index

Returns

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


itemType

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

Parameters

index

Returns

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


iterator

public java.util.ListIterator iterator()

List Iterator.

Returns

java.util.ListIterator


release

public void release()

release the result sequence


size

public int size()

get the size

Returns

int - the size.


string

public java.lang.String string()

retrieve items in sequence

Returns

java.lang.String - result string


value

public java.lang.Object value(int index)

Parameters

index

Returns

java.lang.Object