|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xpath.Environment
public class Environment
An XPath context environment.
| Constructor Summary | |
|---|---|
Environment()
Create an empty environment with only core functions and no variables bound. |
|
| Method Summary | |
|---|---|
void |
bindFunction(String funcName,
Function func)
Binds the specified function to the specified function name in this environment. |
void |
bindFunctions(Map functions)
Binds all the functions in the specified map to the function names under which they are stored in the map. |
void |
bindVariable(String varName,
XObject value)
Binds the specified variable to the specified variable name in this environment. |
void |
bindVariables(Map variables)
Binds all the variables in the specified map to the variable names under which they are stored in the map. |
Function |
getFunction(String funcName)
Returns the function bound to the specified name. |
XObject |
getVariable(String varName)
Returns the value bound to the specified variable name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Environment()
| Method Detail |
|---|
public void bindFunction(String funcName,
Function func)
public void bindFunctions(Map functions)
public Function getFunction(String funcName)
throws XPathException
XPathException
public void bindVariable(String varName,
XObject value)
public void bindVariables(Map variables)
public XObject getVariable(String varName)
throws XPathException
XPathException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||