org.ucl.xpath.function
Class FunctionLibrary

java.lang.Object
  extended byorg.ucl.xpath.function.FunctionLibrary
Direct Known Subclasses:
ConstructorFL, FnFunctionLibrary, OpFunctionLibrary

public class FunctionLibrary
extends java.lang.Object

Class for Function Library support.


Constructor Summary
FunctionLibrary(java.lang.String ns)
          Constructor for FunctionLibrary.
 
Method Summary
 void add_function(Function x)
          Add a function.
 DynamicContext dynamic_context()
          Support for Dynamic context.
 boolean function_exists(QName name, int arity)
          Checks whether the function exists or not.
 Function function(QName name, int arity)
          Function support.
 java.lang.String namespace()
          Support for namespace.
 void set_dynamic_context(DynamicContext dc)
          Set dynamic context on function.
 void set_static_context(StaticContext sc)
          Set static context on function.
 StaticContext static_context()
          Support for Static context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionLibrary

public FunctionLibrary(java.lang.String ns)
Constructor for FunctionLibrary.

Parameters:
ns - namespace.
Method Detail

add_function

public void add_function(Function x)
Add a function.

Parameters:
x - function to add.

function_exists

public boolean function_exists(QName name,
                               int arity)
Checks whether the function exists or not.

Parameters:
name - QName of function.
arity - arity of the function.
Returns:
Result of the test.

function

public Function function(QName name,
                         int arity)
Function support.

Parameters:
name - QName.
arity - arity of the function.
Returns:
The new function.

namespace

public java.lang.String namespace()
Support for namespace.

Returns:
Namespace.

set_static_context

public void set_static_context(StaticContext sc)
Set static context on function.


set_dynamic_context

public void set_dynamic_context(DynamicContext dc)
Set dynamic context on function.


static_context

public StaticContext static_context()
Support for Static context.

Returns:
Result of static context.

dynamic_context

public DynamicContext dynamic_context()
Support for Dynamic context.

Returns:
Result of dynamic context.