Qizx/open API

net.axyana.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
 XQItem currentItem()
          Gets the current item.
 double currentItemAsDouble()
          Gets the current item as a double for optimization.
 long currentItemAsInteger()
          Gets the current item as an integer for optimization.
 java.lang.String currentItemAsString()
          Gets the current item as a String for optimization.
 long getLast()
          Gets context size.
 long getPosition()
          Gets current item position.
 

Method Detail

currentItem

public XQItem currentItem()
Gets the current item.


currentItemAsInteger

public long currentItemAsInteger()
                          throws XQueryException
Gets the current item as an integer for optimization.

Throws:
XQueryException

currentItemAsDouble

public double currentItemAsDouble()
                           throws XQueryException
Gets the current item as a double for optimization.

Throws:
XQueryException

currentItemAsString

public java.lang.String currentItemAsString()
                                     throws XQueryException
Gets the current item as a String for optimization.

Throws:
XQueryException

getPosition

public long getPosition()
Gets current item position.


getLast

public long getLast()
             throws XQueryException
Gets context size.

Throws:
XQueryException

© 2005 Axyana Software