|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 DynamicContextpublic void set_focus(Focus f)
set_focus in interface DynamicContextf - focus to setpublic Focus focus()
focus in interface DynamicContextpublic AnyType context_item()
context_item in interface DynamicContextpublic int context_position()
context_position in interface DynamicContextpublic int last()
last in interface DynamicContextpublic AnyType get_variable(QName name)
get_variable in interface DynamicContextname - is the name of the variable.
public ResultSequence evaluate_function(QName name,
java.util.Collection args)
throws DynamicError
DynamicContext
evaluate_function in interface DynamicContextname - is the name.args - are the arguments.
DynamicError - dynamic error.public void add_function_library(FunctionLibrary fl)
add_function_library in interface StaticContextadd_function_library in class DefaultStaticContextfl - Function library to add.public ResultSequence get_doc(java.lang.String uri)
get_doc in interface DynamicContexturi - is the URI of the document.
public void set_variable(QName var,
AnyType val)
set_variable in interface DynamicContextset_variable in class DefaultStaticContextvar - Variable name.val - Variable value.public int node_position(org.w3c.dom.Node node)
node_position in interface DynamicContextnode - is the node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||