org.apache.commons.configuration.tree.xpath
class ConfigurationNodePointer extends NodePointer
A specific NodePointer
implementation for configuration nodes.
This is needed for queries using JXPath.
Since: 1.3
Version: $Id: ConfigurationNodePointer.java 439648 2006-09-02 20:42:10Z oheger $
Field Summary | |
---|---|
ConfigurationNode | node Stores the associated configuration node. |
static long | serialVersionUID
The serial version UID. |
Constructor Summary | |
---|---|
ConfigurationNodePointer(ConfigurationNode node, Locale locale)
Creates a new instance of ConfigurationNodePointer .
| |
ConfigurationNodePointer(NodePointer parent, ConfigurationNode node)
Creates a new instance of ConfigurationNodePointer and
initializes it with its parent pointer.
|
Method Summary | |
---|---|
NodeIterator | attributeIterator(QName name)
Returns an iterator for the attributes that match the given name.
|
NodeIterator | childIterator(NodeTest test, boolean reverse, NodePointer startWith)
Returns an iterator for the children of this pointer that match the given
test object.
|
int | compareChildNodePointers(NodePointer pointer1, 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. |
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(NodeTest test)
Tests if this node matches the given test. |
ConfigurationNodePointer
.
Parameters: node the node locale the locale
ConfigurationNodePointer
and
initializes it with its parent pointer.
Parameters: parent the parent pointer node the associated node
Parameters: name the attribute name
Returns: the iterator for the attributes
Parameters: test the test object reverse the reverse flag startWith the start value of the iteration
Parameters: pointer1 one pointer pointer2 another pointer
Returns: a flag, which pointer should be sorted first
Returns: the base value
Returns: the immediate node
Returns: the node's length
Returns: the name
Returns: the represented node's value
Returns: the attribute flag
Returns: the collection flag
Returns: a flag if this node is a leaf
Parameters: value the new value
Parameters: test the test object
Returns: a flag if this node corresponds to the test