public class CGINJXPathContext extends Object
JXPathContext
in such a way that
rhino grants the security permissions that it needs.Modifier and Type | Method and Description |
---|---|
static org.apache.commons.jxpath.CompiledExpression |
compile(String xpath)
Compiles the supplied XPath, granting the necessary security permissions,
and returns an internal representation of the path that can then be evaluated.
|
org.apache.commons.jxpath.Pointer |
createPath(String xpath)
Delegates to the JXPathContext method of the same name.
|
org.apache.commons.jxpath.Pointer |
createPathAndSetValue(String xpath,
Object value)
Delegates to the JXPathContext method of the same name.
|
org.apache.commons.jxpath.Pointer |
getContextPointer()
Delegates to the JXPathContext method of the same name.
|
org.apache.commons.jxpath.Pointer |
getPointer(String xpath)
Delegates to the JXPathContext method of the same name.
|
org.apache.commons.jxpath.JXPathContext |
getRelativeContext(org.apache.commons.jxpath.Pointer pointer)
Delegates to the JXPathContext method of the same name.
|
Object |
getValue(String xpath)
Delegates to the JXPathContext method of the same name.
|
Object |
getValue(String xpath,
Class<?> requiredType)
Delegates to the JXPathContext method of the same name.
|
Iterator<?> |
iterate(String xpath)
Delegates to the JXPathContext method of the same name.
|
Iterator<?> |
iteratePointers(String xpath)
Delegates to the JXPathContext method of the same name.
|
static CGINJXPathContext |
newContext(CGINJXPathContext parentContext,
Object contextBean)
Creates a new JXPathContext with the specified bean as the root node and
the specified parent context, wrapped up in a CGINJXPathContext.
|
static CGINJXPathContext |
newContext(Object contextBean)
Creates a new JXPathContext with the specified object as the root node,
wrapped up in a CGINJXPathContext.
|
void |
removeAll(String xpath)
Delegates to the JXPathContext method of the same name.
|
void |
removePath(String xpath)
Delegates to the JXPathContext method of the same name.
|
void |
setValue(String xpath,
Object value)
Delegates to the JXPathContext method of the same name.
|
public static CGINJXPathContext newContext(Object contextBean)
contextBean
- Objectpublic static CGINJXPathContext newContext(CGINJXPathContext parentContext, Object contextBean)
parentContext
- parent contextcontextBean
- Objectpublic static org.apache.commons.jxpath.CompiledExpression compile(String xpath)
xpath
- to compilepublic org.apache.commons.jxpath.Pointer getContextPointer()
public org.apache.commons.jxpath.JXPathContext getRelativeContext(org.apache.commons.jxpath.Pointer pointer)
public Object getValue(String xpath)
public Object getValue(String xpath, Class<?> requiredType)
public void setValue(String xpath, Object value)
public org.apache.commons.jxpath.Pointer createPath(String xpath)
public org.apache.commons.jxpath.Pointer createPathAndSetValue(String xpath, Object value)
public void removePath(String xpath)
public void removeAll(String xpath)
public Iterator<?> iterate(String xpath)
public org.apache.commons.jxpath.Pointer getPointer(String xpath)