|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.ri.model.NodePointer
org.apache.commons.configuration.tree.xpath.ConfigurationNodePointer
class 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()
isLeaf
in class org.apache.commons.jxpath.ri.model.NodePointer
public boolean isCollection()
isCollection
in class org.apache.commons.jxpath.ri.model.NodePointer
public int getLength()
getLength
in class org.apache.commons.jxpath.ri.model.NodePointer
public boolean isAttribute()
isAttribute
in class org.apache.commons.jxpath.ri.model.NodePointer
public org.apache.commons.jxpath.ri.QName getName()
getName
in class org.apache.commons.jxpath.ri.model.NodePointer
public Object getBaseValue()
getBaseValue
in class org.apache.commons.jxpath.ri.model.NodePointer
public Object getImmediateNode()
getImmediateNode
in class org.apache.commons.jxpath.ri.model.NodePointer
public Object getValue()
getValue
in interface org.apache.commons.jxpath.Pointer
getValue
in class org.apache.commons.jxpath.ri.model.NodePointer
public void setValue(Object value)
setValue
in interface org.apache.commons.jxpath.Pointer
setValue
in class org.apache.commons.jxpath.ri.model.NodePointer
value
- the new valuepublic int compareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer pointer1, org.apache.commons.jxpath.ri.model.NodePointer pointer2)
compareChildNodePointers
in class org.apache.commons.jxpath.ri.model.NodePointer
pointer1
- one pointerpointer2
- another pointer
public org.apache.commons.jxpath.ri.model.NodeIterator attributeIterator(org.apache.commons.jxpath.ri.QName name)
attributeIterator
in class org.apache.commons.jxpath.ri.model.NodePointer
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)
childIterator
in class org.apache.commons.jxpath.ri.model.NodePointer
test
- the test objectreverse
- the reverse flagstartWith
- the start value of the iterationpublic boolean testNode(org.apache.commons.jxpath.ri.compiler.NodeTest test)
testNode
in class org.apache.commons.jxpath.ri.model.NodePointer
test
- the test object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |