public class CGINJXPathContext
extends java.lang.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(java.lang.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(java.lang.String xpath)
Delegates to the JXPathContext method of the same name.
|
org.apache.commons.jxpath.Pointer |
createPathAndSetValue(java.lang.String xpath,
java.lang.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(java.lang.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.
|
java.lang.Object |
getValue(java.lang.String xpath)
Delegates to the JXPathContext method of the same name.
|
java.lang.Object |
getValue(java.lang.String xpath,
java.lang.Class<?> requiredType)
Delegates to the JXPathContext method of the same name.
|
java.util.Iterator<?> |
iterate(java.lang.String xpath)
Delegates to the JXPathContext method of the same name.
|
java.util.Iterator<?> |
iteratePointers(java.lang.String xpath)
Delegates to the JXPathContext method of the same name.
|
static CGINJXPathContext |
newContext(CGINJXPathContext parentContext,
java.lang.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(java.lang.Object contextBean)
Creates a new JXPathContext with the specified object as the root node,
wrapped up in a CGINJXPathContext.
|
void |
removeAll(java.lang.String xpath)
Delegates to the JXPathContext method of the same name.
|
void |
removePath(java.lang.String xpath)
Delegates to the JXPathContext method of the same name.
|
void |
setValue(java.lang.String xpath,
java.lang.Object value)
Delegates to the JXPathContext method of the same name.
|
public static CGINJXPathContext newContext(java.lang.Object contextBean)
contextBean
- Objectpublic static CGINJXPathContext newContext(CGINJXPathContext parentContext, java.lang.Object contextBean)
parentContext
- parent contextcontextBean
- Objectpublic static org.apache.commons.jxpath.CompiledExpression compile(java.lang.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 java.lang.Object getValue(java.lang.String xpath)
public java.lang.Object getValue(java.lang.String xpath, java.lang.Class<?> requiredType)
public void setValue(java.lang.String xpath, java.lang.Object value)
public org.apache.commons.jxpath.Pointer createPath(java.lang.String xpath)
public org.apache.commons.jxpath.Pointer createPathAndSetValue(java.lang.String xpath, java.lang.Object value)
public void removePath(java.lang.String xpath)
public void removeAll(java.lang.String xpath)
public java.util.Iterator<?> iterate(java.lang.String xpath)
public org.apache.commons.jxpath.Pointer getPointer(java.lang.String xpath)
public java.util.Iterator<?> iteratePointers(java.lang.String xpath)