org.ucl.xpath
Interface DynamicContext

All Superinterfaces:
StaticContext
All Known Implementing Classes:
DefaultDynamicContext

public interface DynamicContext
extends StaticContext

Interface for dynamic context.


Method Summary
 AnyType context_item()
          Get context item.
 int context_position()
          Get context node position.
 ResultSequence evaluate_function(QName name, java.util.Collection args)
          Evaluate the function of the arguments.
 Focus focus()
          Return focus.
 ResultSequence get_doc(java.lang.String uri)
          Get document.
 AnyType get_variable(QName name)
          Get variable.
 int last()
          Get position of last item.
 int node_position(org.w3c.dom.Node n)
          Get node position.
 void set_focus(Focus focus)
          Set focus.
 void set_variable(QName var, AnyType val)
          Set variable.
 XDTDayTimeDuration tz()
          Reads the day from a TimeDuration type
 
Methods inherited from interface org.ucl.xpath.StaticContext
add_function_library, add_namespace, add_variable, attribute_declared, attribute_type_definition, base_uri, default_function_namespace, default_namespace, del_variable, derives_from, derives_from, destroy_scope, element_declared, element_type_definition, expand_elem_type_qname, expand_function_qname, expand_qname, function_exists, make_atomic, new_scope, prefix_exists, resolve_prefix, type_defined, variable_exists, variable_in_scope, xpath1_compatible
 

Method Detail

context_item

public AnyType context_item()
Get context item.

Returns:
the context item.

context_position

public int context_position()
Get context node position.

Returns:
position of context node.

last

public int last()
Get position of last item.

Returns:
last item position.

get_variable

public AnyType get_variable(QName name)
Get variable.

Parameters:
name - is the name of the variable.
Returns:
variable.

set_variable

public void set_variable(QName var,
                         AnyType val)
Set variable.

Parameters:
var - is name of the variable.
val - is the value to be set for the variable.

evaluate_function

public ResultSequence evaluate_function(QName name,
                                        java.util.Collection args)
                                 throws DynamicError
Evaluate the function of the arguments.

Parameters:
name - is the name.
args - are the arguments.
Returns:
result of the function evaluation.
Throws:
DynamicError - dynamic error.

tz

public XDTDayTimeDuration tz()
Reads the day from a TimeDuration type

Returns:
current date time and implicit timezone.

get_doc

public ResultSequence get_doc(java.lang.String uri)
Get document.

Parameters:
uri - is the URI of the document.
Returns:
document.

set_focus

public void set_focus(Focus focus)
Set focus.

Parameters:
focus - is focus to be set.

focus

public Focus focus()
Return focus.

Returns:
Focus

node_position

public int node_position(org.w3c.dom.Node n)
Get node position.

Parameters:
n - is the node.
Returns:
position of the node.