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.compiler |
XPath parse tree.
|
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.container |
Implementation of "model" APIs for Containers.
|
org.apache.commons.jxpath.ri.model.dom |
Implementation of "model" APIs for W3C DOM.
|
org.apache.commons.jxpath.ri.model.dynabeans |
Implementation of "model" APIs for Commons BeanUtils DynaBeans.
|
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.util |
Utility classes to assist with JXPath implementation(s) and/or usage.
|
Modifier and Type | Method | Description |
---|---|---|
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 JXPathContext.setFactory(org.apache.commons.jxpath.AbstractFactory) . |
abstract Pointer |
JXPathContext.createPath(java.lang.String xpath) |
Creates missing elements of the path by invoking an
AbstractFactory ,
which should first be installed on the context by calling JXPathContext.setFactory(org.apache.commons.jxpath.AbstractFactory) . |
Pointer |
CompiledExpression.createPathAndSetValue(JXPathContext context,
java.lang.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 JXPathContext.setFactory(org.apache.commons.jxpath.AbstractFactory) . |
abstract Pointer |
JXPathContext.createPathAndSetValue(java.lang.String xpath,
java.lang.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 JXPathContext.setFactory(org.apache.commons.jxpath.AbstractFactory) . |
Pointer |
ExpressionContext.getContextNodePointer() |
Get the current context node.
|
abstract Pointer |
JXPathContext.getContextPointer() |
Returns a Pointer for the context bean.
|
Pointer |
JXPathContext.getNamespaceContextPointer() |
Returns the namespace context pointer set with
setNamespaceContextPointer()
or, if none has been specified, the context pointer otherwise. |
Pointer |
CompiledExpression.getPointer(JXPathContext context,
java.lang.String xpath) |
Traverses the xpath and returns a Pointer.
|
abstract Pointer |
JXPathContext.getPointer(java.lang.String xpath) |
Traverses the xpath and returns a Pointer.
|
Pointer |
IdentityManager.getPointerByID(JXPathContext context,
java.lang.String id) |
Finds a node by its ID.
|
Pointer |
JXPathContext.getPointerByID(java.lang.String id) |
Locates a Node by its ID.
|
Pointer |
JXPathContext.getPointerByKey(java.lang.String key,
java.lang.String value) |
Locates a Node by a key value.
|
Pointer |
KeyManager.getPointerByKey(JXPathContext context,
java.lang.String keyName,
java.lang.String keyValue) |
Find a node by key/value.
|
Modifier and Type | Method | Description |
---|---|---|
void |
BasicNodeSet.add(Pointer pointer) |
Add a pointer to this NodeSet.
|
boolean |
AbstractFactory.createObject(JXPathContext context,
Pointer pointer,
java.lang.Object parent,
java.lang.String name,
int index) |
The parameters may describe a collection element or an individual
object.
|
abstract JXPathContext |
JXPathContext.getRelativeContext(Pointer pointer) |
Returns a JXPathContext that is relative to the current JXPathContext.
|
void |
BasicNodeSet.remove(Pointer pointer) |
Remove a pointer from this NodeSet.
|
void |
JXPathContext.setNamespaceContextPointer(Pointer namespaceContextPointer) |
Namespace prefixes can be defined implicitly by specifying a pointer to a
context where the namespaces are defined.
|
Modifier and Type | Field | Description |
---|---|---|
private Pointer |
JXPathContextReferenceImpl.contextPointer |
|
private Pointer |
JXPathContextReferenceImpl.rootPointer |
Modifier and Type | Method | Description |
---|---|---|
Pointer |
JXPathCompiledExpression.createPath(JXPathContext context) |
|
Pointer |
JXPathContextReferenceImpl.createPath(java.lang.String xpath) |
|
Pointer |
JXPathContextReferenceImpl.createPath(java.lang.String xpath,
Expression expr) |
Create the given path.
|
Pointer |
JXPathCompiledExpression.createPathAndSetValue(JXPathContext context,
java.lang.Object value) |
|
Pointer |
JXPathContextReferenceImpl.createPathAndSetValue(java.lang.String xpath,
java.lang.Object value) |
|
Pointer |
JXPathContextReferenceImpl.createPathAndSetValue(java.lang.String xpath,
Expression expr,
java.lang.Object value) |
Create the given path setting its value to value.
|
Pointer |
EvalContext.getContextNodePointer() |
|
Pointer |
JXPathContextReferenceImpl.getContextPointer() |
|
Pointer |
JXPathContextReferenceImpl.getNamespaceContextPointer() |
|
Pointer |
NamespaceResolver.getNamespaceContextPointer() |
Get the namespace context pointer.
|
Pointer |
JXPathCompiledExpression.getPointer(JXPathContext context,
java.lang.String xpath) |
|
Pointer |
JXPathContextReferenceImpl.getPointer(java.lang.String xpath) |
|
Pointer |
JXPathContextReferenceImpl.getPointer(java.lang.String xpath,
Expression expr) |
Get a pointer to the specified path/expression.
|
Pointer |
EvalContext.getSingleNodePointer() |
Returns the first encountered Pointer that matches the current
context's criteria.
|
private Pointer |
JXPathContextReferenceImpl.setValue(java.lang.String xpath,
Expression expr,
java.lang.Object value,
boolean create) |
Set the specified value.
|
Modifier and Type | Method | Description |
---|---|---|
JXPathContext |
JXPathContextReferenceImpl.getRelativeContext(Pointer pointer) |
|
void |
JXPathContextReferenceImpl.setNamespaceContextPointer(Pointer pointer) |
Constructor | Description |
---|---|
JXPathContextReferenceImpl(JXPathContext parentContext,
java.lang.Object contextBean,
Pointer contextPointer) |
Create a new JXPathContextReferenceImpl.
|
Modifier and Type | Method | Description |
---|---|---|
Pointer |
ChildContext.getSingleNodePointer() |
This method is called on the last context on the path when only
one value is needed.
|
Pointer |
InitialContext.getSingleNodePointer() |
|
Pointer |
SelfContext.getSingleNodePointer() |
Modifier and Type | Method | Description |
---|---|---|
protected Pointer |
Path.getSingleNodePointerForSteps(EvalContext context) |
Given a root context, walks a path therefrom and finds the
pointer to the first element matching the path.
|
protected Pointer |
Path.searchForPath(EvalContext context) |
The idea here is to return a NullPointer rather than null if that's at
all possible.
|
Modifier and Type | Class | Description |
---|---|---|
class |
NodePointer |
Common superclass for Pointers of all kinds.
|
class |
VariablePointer |
Pointer to a context variable.
|
Modifier and Type | Method | Description |
---|---|---|
Pointer |
NodePointer.getPointerByID(JXPathContext context,
java.lang.String id) |
Locates a node by ID.
|
Pointer |
NodePointer.getPointerByKey(JXPathContext context,
java.lang.String key,
java.lang.String value) |
Locates a node by key and value.
|
Modifier and Type | Class | Description |
---|---|---|
class |
BeanPointer |
A Pointer that points to a JavaBean or a collection.
|
class |
BeanPropertyPointer |
Pointer pointing to a property of a JavaBean.
|
class |
CollectionPointer |
Transparent pointer to a collection (array or Collection).
|
class |
LangAttributePointer |
A Pointer that points to the "lang" attribute of a JavaBean.
|
class |
NullElementPointer |
Used when there is a need to construct a Pointer for a collection element
that does not exist.
|
class |
NullPointer |
Pointer whose value is
null . |
class |
NullPropertyPointer |
|
class |
PropertyOwnerPointer |
A pointer describing a node that has properties, each of which could be
a collection.
|
class |
PropertyPointer |
A pointer allocated by a PropertyOwnerPointer to represent the value of
a property of the parent object.
|
Modifier and Type | Class | Description |
---|---|---|
class |
ContainerPointer |
Transparent pointer to a Container.
|
Modifier and Type | Class | Description |
---|---|---|
class |
DOMAttributePointer |
A Pointer that points to a DOM node.
|
class |
DOMNodePointer |
A Pointer that points to a DOM node.
|
class |
NamespacePointer |
Represents a namespace node.
|
Modifier and Type | Method | Description |
---|---|---|
Pointer |
DOMNodePointer.getPointerByID(JXPathContext context,
java.lang.String id) |
Locates a node by ID.
|
Modifier and Type | Class | Description |
---|---|---|
class |
DynaBeanPointer |
A Pointer that points to a
DynaBean . |
class |
DynaBeanPropertyPointer |
Pointer pointing to a property of a
DynaBean . |
Modifier and Type | Class | Description |
---|---|---|
class |
DynamicPointer |
A Pointer that points to an object with Dynamic Properties.
|
class |
DynamicPropertyPointer |
Pointer pointing to a property of an object with dynamic properties.
|
Modifier and Type | Class | Description |
---|---|---|
class |
JDOMAttributePointer |
A Pointer that points to a DOM node.
|
class |
JDOMNamespacePointer |
Represents a namespace node.
|
class |
JDOMNodePointer |
A Pointer that points to a DOM node.
|
Modifier and Type | Class | Description |
---|---|---|
(package private) static class |
BasicTypeConverter.ValuePointer |
Value pointer
|
Modifier and Type | Method | Description |
---|---|---|
Pointer |
KeyManagerUtils.SingleNodeExtendedKeyManager.getPointerByKey(JXPathContext context,
java.lang.String keyName,
java.lang.String keyValue) |