Qizx/Open v0.4p2

net.xfra.qizxopen.xquery
Interface Focus


public interface Focus

Provides access to context item, position and size. Passed to every eval method, and typically implemented by expressions that modify the focus, namely Path and Filter. (internal use).


Method Summary
 Item getItem()
          Gets the current item.
 long getItemAsInteger()
          Gets the current item as an integer for optimization.
 int getLast()
          Gets context size.
 int getPosition()
          Gets current item position.
 

Method Detail

getItem

public Item getItem()
Gets the current item.


getItemAsInteger

public long getItemAsInteger()
                      throws XQueryException
Gets the current item as an integer for optimization. TODO: same for double string etc.

XQueryException

getPosition

public int getPosition()
Gets current item position. Note: 'int' prevent sequences of more than 2 billion items. Real problem ?


getLast

public int getLast()
            throws XQueryException
Gets context size.

XQueryException

 Copyright Xavier FRANC 2003-2004