public class ArrayPointer<T> extends CollectionCGINPointer
Modifier | Constructor and Description |
---|---|
protected |
ArrayPointer(org.apache.commons.jxpath.ri.model.NodePointer parent,
org.apache.commons.jxpath.ri.QName name,
Object object)
Creates a pointer to the given array.
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.jxpath.ri.model.NodeIterator |
childIterator(org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest,
boolean reverse,
org.apache.commons.jxpath.ri.model.NodePointer startWith)
Gets an iterator that visits the elements of this array
that pass the given test, in the given order, starting from the given element.
|
Object |
getImmediateNode()
Gets the array.
|
void |
setValue(Object value)
Sets this pointer so that it refers to the given array.
|
isCollection, isLeaf
compareChildNodePointers, createChild, getBaseValue, getLength, getName
asPath, attributeIterator, clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, escape, getAbstractFactory, getDefaultNamespaceURI, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isContainer, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, setAttribute, setIndex, setNamespaceResolver, testNode, toString
protected ArrayPointer(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.ri.QName name, Object object)
parent
- pointer to the surrounding nodename
- name of the new nodeobject
- value of the new nodepublic org.apache.commons.jxpath.ri.model.NodeIterator childIterator(org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest, boolean reverse, org.apache.commons.jxpath.ri.model.NodePointer startWith)
childIterator
in class org.apache.commons.jxpath.ri.model.NodePointer
nodeTest
- test that element must pass to be visited by the iteratorreverse
- order in which to visit elementsstartWith
- element at which to startpublic Object getImmediateNode()
getImmediateNode
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
- Object