public class XPathContext extends SimpleContext implements Context, org.apache.commons.jxpath.Variables
Context implementation for JXPath environments.systemContextNAMESPACES_KEY| Constructor and Description |
|---|
XPathContext()
No argument constructor.
|
XPathContext(Context parent)
Constructor for cascading contexts.
|
| Modifier and Type | Method and Description |
|---|---|
void |
declareVariable(String varName,
Object value) |
Object |
getVariable(String varName) |
boolean |
isDeclaredVariable(String varName) |
void |
undeclareVariable(String varName) |
get, getLog, getParent, getSystemContext, getVars, has, hasLocal, reset, set, setLocal, setLog, setVarspublic XPathContext()
public XPathContext(Context parent)
parent - The parent context. Can be null.public boolean isDeclaredVariable(String varName)
isDeclaredVariable in interface org.apache.commons.jxpath.Variablespublic Object getVariable(String varName)
getVariable in interface org.apache.commons.jxpath.Variablespublic void declareVariable(String varName, Object value)
declareVariable in interface org.apache.commons.jxpath.Variablespublic void undeclareVariable(String varName)
undeclareVariable in interface org.apache.commons.jxpath.VariablesCopyright © 2005–2015 The Apache Software Foundation. All rights reserved.