public class XPathContext extends SimpleContext implements Context, org.apache.commons.jxpath.Variables
Context
implementation for JXPath environments.systemContext
NAMESPACES_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, setVars
public XPathContext()
public XPathContext(Context parent)
parent
- The parent context. Can be null.public boolean isDeclaredVariable(String varName)
isDeclaredVariable
in interface org.apache.commons.jxpath.Variables
public Object getVariable(String varName)
getVariable
in interface org.apache.commons.jxpath.Variables
public void declareVariable(String varName, Object value)
declareVariable
in interface org.apache.commons.jxpath.Variables
public void undeclareVariable(String varName)
undeclareVariable
in interface org.apache.commons.jxpath.Variables
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.