|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ucl.xpath.DefaultStaticContext org.ucl.xpath.DefaultDynamicContext
The default implementation of a Dynamic Context. Initializes and provides functionality of a dynamic context according to the XPath 2.0 specification.
Constructor Summary | |
DefaultDynamicContext(org.apache.xerces.xs.XSModel schema,
org.w3c.dom.Document doc)
Constructor. |
Method Summary | |
void |
add_function_library(FunctionLibrary fl)
Adds function definitions. |
AnyType |
context_item()
Retrieve context item that is in focus |
int |
context_position()
Retrieve the position of the focus |
ResultSequence |
evaluate_function(QName name,
java.util.Collection args)
Evaluate the function of the arguments. |
Focus |
focus()
Return the focus |
ResultSequence |
get_doc(java.lang.String uri)
get document |
AnyType |
get_variable(QName name)
Retrieve the variable name |
int |
last()
Retrieve the position of the last focus |
int |
node_position(org.w3c.dom.Node node)
Retrieve integer of the position of node |
void |
set_focus(Focus f)
Changes the current focus. |
void |
set_variable(QName var,
AnyType val)
Sets the value of a variable. |
XDTDayTimeDuration |
tz()
Reads the day from a TimeDuration type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultDynamicContext(org.apache.xerces.xs.XSModel schema, org.w3c.dom.Document doc)
schema
- Schema information of document. May be nulldoc
- Document [root] node of XML source.Method Detail |
public XDTDayTimeDuration tz()
tz
in interface DynamicContext
public void set_focus(Focus f)
set_focus
in interface DynamicContext
f
- focus to setpublic Focus focus()
focus
in interface DynamicContext
public AnyType context_item()
context_item
in interface DynamicContext
public int context_position()
context_position
in interface DynamicContext
public int last()
last
in interface DynamicContext
public AnyType get_variable(QName name)
get_variable
in interface DynamicContext
name
- is the name of the variable.
public ResultSequence evaluate_function(QName name, java.util.Collection args) throws DynamicError
DynamicContext
evaluate_function
in interface DynamicContext
name
- is the name.args
- are the arguments.
DynamicError
- dynamic error.public void add_function_library(FunctionLibrary fl)
add_function_library
in interface StaticContext
add_function_library
in class DefaultStaticContext
fl
- Function library to add.public ResultSequence get_doc(java.lang.String uri)
get_doc
in interface DynamicContext
uri
- is the URI of the document.
public void set_variable(QName var, AnyType val)
set_variable
in interface DynamicContext
set_variable
in class DefaultStaticContext
var
- Variable name.val
- Variable value.public int node_position(org.w3c.dom.Node node)
node_position
in interface DynamicContext
node
- is the node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |