|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jxpath.ri.model.NodePointer org.apache.commons.configuration.tree.xpath.ConfigurationNodePointer
A specific NodePointer
implementation for configuration nodes.
This is needed for queries using JXPath.
Field Summary |
Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION |
Constructor Summary | |
ConfigurationNodePointer(ConfigurationNode node,
Locale locale)
Creates a new instance of ConfigurationNodePointer . |
|
ConfigurationNodePointer(org.apache.commons.jxpath.ri.model.NodePointer parent,
ConfigurationNode node)
Creates a new instance of ConfigurationNodePointer and
initializes it with its parent pointer. |
Method Summary | |
org.apache.commons.jxpath.ri.model.NodeIterator |
attributeIterator(org.apache.commons.jxpath.ri.QName name)
Returns an iterator for the attributes that match the given name. |
org.apache.commons.jxpath.ri.model.NodeIterator |
childIterator(org.apache.commons.jxpath.ri.compiler.NodeTest test,
boolean reverse,
org.apache.commons.jxpath.ri.model.NodePointer startWith)
Returns an iterator for the children of this pointer that match the given test object. |
int |
compareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer pointer1,
org.apache.commons.jxpath.ri.model.NodePointer pointer2)
Compares two child node pointers. |
Object |
getBaseValue()
Returns this node's base value. |
Object |
getImmediateNode()
Returns the immediate node. |
int |
getLength()
Returns this node's length. |
org.apache.commons.jxpath.ri.QName |
getName()
Returns this node's name. |
Object |
getValue()
Returns the value of this node. |
boolean |
isAttribute()
Checks whether this node pointer refers to an attribute node. |
boolean |
isCollection()
Returns a flag if this node is a collection. |
boolean |
isLeaf()
Returns a flag whether this node is a leaf. |
void |
setValue(Object value)
Sets the value of this node. |
boolean |
testNode(org.apache.commons.jxpath.ri.compiler.NodeTest test)
Tests if this node matches the given test. |
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
asPath, clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, getDefaultNamespaceURI, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValuePointer, isActual, isContainer, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, setAttribute, setIndex, setNamespaceResolver, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConfigurationNodePointer(ConfigurationNode node, Locale locale)
ConfigurationNodePointer
.
node
- the nodelocale
- the localepublic ConfigurationNodePointer(org.apache.commons.jxpath.ri.model.NodePointer parent, ConfigurationNode node)
ConfigurationNodePointer
and
initializes it with its parent pointer.
parent
- the parent pointernode
- the associated nodeMethod Detail |
public boolean isLeaf()
public boolean isCollection()
public int getLength()
public boolean isAttribute()
public org.apache.commons.jxpath.ri.QName getName()
public Object getBaseValue()
public Object getImmediateNode()
public Object getValue()
public void setValue(Object value)
value
- the new valuepublic int compareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer pointer1, org.apache.commons.jxpath.ri.model.NodePointer pointer2)
pointer1
- one pointerpointer2
- another pointer
public org.apache.commons.jxpath.ri.model.NodeIterator attributeIterator(org.apache.commons.jxpath.ri.QName name)
name
- the attribute name
public org.apache.commons.jxpath.ri.model.NodeIterator childIterator(org.apache.commons.jxpath.ri.compiler.NodeTest test, boolean reverse, org.apache.commons.jxpath.ri.model.NodePointer startWith)
test
- the test objectreverse
- the reverse flagstartWith
- the start value of the iterationpublic boolean testNode(org.apache.commons.jxpath.ri.compiler.NodeTest test)
test
- the test object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |