| Package | Description |
|---|---|
| org.apache.commons.jxpath |
Public, abstract part of JXPath: interfaces and configuration.
|
| org.apache.commons.jxpath.ri |
Reference implementation of JXPath.
|
| org.apache.commons.jxpath.ri.axes |
Implementations of EvalContext used for different XPath axes (child::, parent:: etc).
|
| org.apache.commons.jxpath.ri.model |
The "model" package defines APIs that are implemented
for every object model to be supported by JXPath.
|
| org.apache.commons.jxpath.ri.model.beans |
Implementation of "model" APIs for JavaBeans, Dynamic Property Objects,
collections and null.
|
| org.apache.commons.jxpath.ri.model.dom |
Implementation of "model" APIs for W3C DOM.
|
| org.apache.commons.jxpath.ri.model.dynamic |
Implementation of "model" APIs for dynamic property objects e.g.
|
| org.apache.commons.jxpath.ri.model.jdom |
Implementation of "model" APIs for JDOM (see jdom.org).
|
| org.apache.commons.jxpath.servlet |
Implementations of JXPathContexts bound to various servlet scopes: PageContext,
ServletRequest, HttpSession and ServletContext.
|
| Modifier and Type | Field and Description |
|---|---|
protected JXPathContext |
JXPathContext.parentContext
parent context
|
| Modifier and Type | Method and Description |
|---|---|
JXPathContext |
ExpressionContext.getJXPathContext()
Get the JXPathContext in which this function is being evaluated.
|
JXPathContext |
JXPathContext.getParentContext()
Returns the parent context of this context or null.
|
abstract JXPathContext |
JXPathContext.getRelativeContext(Pointer pointer)
Returns a JXPathContext that is relative to the current JXPathContext.
|
abstract JXPathContext |
JXPathContextFactory.newContext(JXPathContext parentContext,
Object contextBean)
Creates a new instance of a JXPathContext using the
currently configured parameters.
|
static JXPathContext |
JXPathContext.newContext(JXPathContext parentContext,
Object contextBean)
Creates a new JXPathContext with the specified bean as the root node and
the specified parent context.
|
static JXPathContext |
JXPathContext.newContext(Object contextBean)
Creates a new JXPathContext with the specified object as the root node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractFactory.createObject(JXPathContext context,
Pointer pointer,
Object parent,
String name,
int index)
The parameters may describe a collection element or an individual
object.
|
Pointer |
CompiledExpression.createPath(JXPathContext context)
Creates intermediate elements of
the path by invoking an
AbstractFactory, which should first be
installed on the context by calling setFactory(org.apache.commons.jxpath.AbstractFactory). |
Pointer |
CompiledExpression.createPathAndSetValue(JXPathContext context,
Object value)
The same as setValue, except it creates intermediate elements of
the path by invoking an
AbstractFactory, which should first be
installed on the context by calling setFactory(org.apache.commons.jxpath.AbstractFactory). |
boolean |
AbstractFactory.declareVariable(JXPathContext context,
String name)
Declare the specified variable
|
NodeSet |
ExtendedKeyManager.getNodeSetByKey(JXPathContext context,
String key,
Object value)
Find a NodeSet by key/value.
|
Pointer |
CompiledExpression.getPointer(JXPathContext context,
String xpath)
Traverses the xpath and returns a Pointer.
|
Pointer |
IdentityManager.getPointerByID(JXPathContext context,
String id)
Finds a node by its ID.
|
Pointer |
KeyManager.getPointerByKey(JXPathContext context,
String keyName,
String keyValue)
Find a node by key/value.
|
Object |
CompiledExpression.getValue(JXPathContext context)
Evaluates the xpath and returns the resulting object.
|
Object |
CompiledExpression.getValue(JXPathContext context,
Class requiredType)
Evaluates the xpath, converts the result to the specified class and
returns the resulting object.
|
Iterator |
CompiledExpression.iterate(JXPathContext context)
Traverses the xpath and returns a Iterator of all results found
for the path.
|
Iterator |
CompiledExpression.iteratePointers(JXPathContext context)
Traverses the xpath and returns an Iterator of Pointers.
|
abstract JXPathContext |
JXPathContextFactory.newContext(JXPathContext parentContext,
Object contextBean)
Creates a new instance of a JXPathContext using the
currently configured parameters.
|
static JXPathContext |
JXPathContext.newContext(JXPathContext parentContext,
Object contextBean)
Creates a new JXPathContext with the specified bean as the root node and
the specified parent context.
|
void |
CompiledExpression.removeAll(JXPathContext context)
Remove all graph elements described by this expression.
|
void |
CompiledExpression.removePath(JXPathContext context)
Remove the graph element described by this expression.
|
void |
CompiledExpression.setValue(JXPathContext context,
Object value)
Modifies the value of the property described by the supplied xpath.
|
| Constructor and Description |
|---|
JXPathContext(JXPathContext parentContext,
Object contextBean)
This constructor should remain protected - it is to be overridden by
subclasses, but never explicitly invoked by clients.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JXPathContextReferenceImpl
The reference implementation of JXPathContext.
|
| Modifier and Type | Method and Description |
|---|---|
JXPathContext |
EvalContext.getJXPathContext() |
JXPathContext |
JXPathContextReferenceImpl.getRelativeContext(Pointer pointer) |
JXPathContext |
JXPathContextFactoryReferenceImpl.newContext(JXPathContext parentContext,
Object contextBean) |
| Modifier and Type | Method and Description |
|---|---|
Pointer |
JXPathCompiledExpression.createPath(JXPathContext context) |
Pointer |
JXPathCompiledExpression.createPathAndSetValue(JXPathContext context,
Object value) |
Pointer |
JXPathCompiledExpression.getPointer(JXPathContext context,
String xpath) |
Object |
JXPathCompiledExpression.getValue(JXPathContext context) |
Object |
JXPathCompiledExpression.getValue(JXPathContext context,
Class requiredType) |
Iterator |
JXPathCompiledExpression.iterate(JXPathContext context) |
Iterator |
JXPathCompiledExpression.iteratePointers(JXPathContext context) |
JXPathContext |
JXPathContextFactoryReferenceImpl.newContext(JXPathContext parentContext,
Object contextBean) |
void |
JXPathCompiledExpression.removeAll(JXPathContext context) |
void |
JXPathCompiledExpression.removePath(JXPathContext context) |
void |
JXPathCompiledExpression.setValue(JXPathContext context,
Object value) |
| Constructor and Description |
|---|
JXPathContextReferenceImpl(JXPathContext parentContext,
Object contextBean)
Create a new JXPathContextReferenceImpl.
|
JXPathContextReferenceImpl(JXPathContext parentContext,
Object contextBean,
Pointer contextPointer)
Create a new JXPathContextReferenceImpl.
|
| Modifier and Type | Method and Description |
|---|---|
JXPathContext |
RootContext.getJXPathContext() |
| Modifier and Type | Method and Description |
|---|---|
JXPathContext |
VariablePointerFactory.VariableContextWrapper.getContext()
Get the original (unwrapped) context.
|
| Modifier and Type | Method and Description |
|---|---|
static VariablePointerFactory.VariableContextWrapper |
VariablePointerFactory.contextWrapper(JXPathContext context)
VariableContextWrapper factory method.
|
NodePointer |
NodePointer.createAttribute(JXPathContext context,
QName name)
Called to create a non-existing attribute
|
NodePointer |
VariablePointer.createChild(JXPathContext context,
QName name,
int index) |
NodePointer |
NodePointer.createChild(JXPathContext context,
QName name,
int index)
Called by a child pointer when it needs to create a parent object for a
non-existent collection element.
|
NodePointer |
VariablePointer.createChild(JXPathContext context,
QName name,
int index,
Object value) |
NodePointer |
NodePointer.createChild(JXPathContext context,
QName name,
int index,
Object value)
Called by a child pointer if that child needs to assign the value
supplied in the createPath(context, value) call to a non-existent
node.
|
NodePointer |
VariablePointer.createPath(JXPathContext context) |
NodePointer |
NodePointer.createPath(JXPathContext context)
Called by a child pointer when it needs to create a parent object.
|
NodePointer |
VariablePointer.createPath(JXPathContext context,
Object value) |
NodePointer |
NodePointer.createPath(JXPathContext context,
Object value)
Called directly by JXPathContext.
|
protected void |
VariablePointer.findVariables(JXPathContext context)
Assimilate the Variables instance associated with the specified context.
|
protected AbstractFactory |
NodePointer.getAbstractFactory(JXPathContext context)
Get the AbstractFactory associated with the specified JXPathContext.
|
NodeSet |
NodePointer.getNodeSetByKey(JXPathContext context,
String key,
Object value)
Find a NodeSet by key/value.
|
Pointer |
NodePointer.getPointerByID(JXPathContext context,
String id)
Locates a node by ID.
|
Pointer |
NodePointer.getPointerByKey(JXPathContext context,
String key,
String value)
Locates a node by key and value.
|
| Modifier and Type | Method and Description |
|---|---|
NodePointer |
PropertyPointer.createChild(JXPathContext context,
QName name,
int index) |
NodePointer |
NullPropertyPointer.createChild(JXPathContext context,
QName name,
int index) |
NodePointer |
NullPointer.createChild(JXPathContext context,
QName name,
int index) |
NodePointer |
CollectionPointer.createChild(JXPathContext context,
QName name,
int index) |
NodePointer |
PropertyPointer.createChild(JXPathContext context,
QName name,
int index,
Object value) |
NodePointer |
NullPropertyPointer.createChild(JXPathContext context,
QName name,
int index,
Object value) |
NodePointer |
NullPointer.createChild(JXPathContext context,
QName name,
int index,
Object value) |
NodePointer |
CollectionPointer.createChild(JXPathContext context,
QName name,
int index,
Object value) |
NodePointer |
PropertyPointer.createPath(JXPathContext context) |
NodePointer |
NullPropertyPointer.createPath(JXPathContext context) |
NodePointer |
NullPointer.createPath(JXPathContext context) |
NodePointer |
NullElementPointer.createPath(JXPathContext context) |
NodePointer |
CollectionPointer.createPath(JXPathContext context) |
NodePointer |
BeanPropertyPointer.createPath(JXPathContext context) |
NodePointer |
PropertyPointer.createPath(JXPathContext context,
Object value) |
NodePointer |
NullPropertyPointer.createPath(JXPathContext context,
Object value) |
NodePointer |
NullPointer.createPath(JXPathContext context,
Object value) |
NodePointer |
NullElementPointer.createPath(JXPathContext context,
Object value) |
NodePointer |
CollectionPointer.createPath(JXPathContext context,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
NodePointer |
DOMNodePointer.createAttribute(JXPathContext context,
QName name) |
NodePointer |
DOMNodePointer.createChild(JXPathContext context,
QName name,
int index) |
NodePointer |
DOMNodePointer.createChild(JXPathContext context,
QName name,
int index,
Object value) |
Pointer |
DOMNodePointer.getPointerByID(JXPathContext context,
String id)
Locates a node by ID.
|
| Modifier and Type | Method and Description |
|---|---|
NodePointer |
DynamicPropertyPointer.createPath(JXPathContext context) |
NodePointer |
DynamicPropertyPointer.createPath(JXPathContext context,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
NodePointer |
JDOMNodePointer.createAttribute(JXPathContext context,
QName name) |
NodePointer |
JDOMNodePointer.createChild(JXPathContext context,
QName name,
int index) |
NodePointer |
JDOMNodePointer.createChild(JXPathContext context,
QName name,
int index,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
static JXPathContext |
JXPathServletContexts.getApplicationContext(ServletContext servletContext)
Returns a JXPathContext bound to the "application" scope.
|
static JXPathContext |
JXPathServletContexts.getPageContext(PageContext pageContext)
Returns a JXPathContext bound to the "page" scope.
|
static JXPathContext |
JXPathServletContexts.getRequestContext(ServletRequest request,
ServletContext servletContext)
Returns a JXPathContext bound to the "request" scope.
|
static JXPathContext |
JXPathServletContexts.getSessionContext(HttpSession session,
ServletContext servletContext)
Returns a JXPathContext bound to the "session" scope.
|
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.