public abstract class CGINPointer
extends org.apache.commons.jxpath.ri.model.NodePointer
Modifier | Constructor and Description |
---|---|
protected |
CGINPointer(org.apache.commons.jxpath.ri.model.NodePointer parent,
org.apache.commons.jxpath.ri.QName name)
Creates a pointer for a node with the given name.
|
Modifier and Type | Method and Description |
---|---|
int |
compareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer pointer1,
org.apache.commons.jxpath.ri.model.NodePointer pointer2)
Compares two child NodePointers and returns a positive number, zero or a positive number
according to the order of the pointers.
|
CGINPointer |
createChild(org.apache.commons.jxpath.ri.model.NodePointer parent,
org.apache.commons.jxpath.ri.QName name,
Object object)
Modifies the referenced node to have an additional child.
|
Object |
getBaseValue()
Gets the value before any indexing.
|
int |
getLength()
Gets the size of a collection, or 1 if not a collection.
|
org.apache.commons.jxpath.ri.QName |
getName()
Gets the name of the referenced node.
|
asPath, attributeIterator, childIterator, clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, escape, getAbstractFactory, getDefaultNamespaceURI, getImmediateNode, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isCollection, isContainer, isDefaultNamespace, isLanguage, isLeaf, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, setAttribute, setIndex, setNamespaceResolver, setValue, testNode, toString
protected CGINPointer(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.ri.QName name)
parent
- pointer to the surrounding nodename
- name of the referenced nodepublic CGINPointer createChild(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 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
- first pointerpointer2
- second pointerpublic 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 int getLength()
getLength
in class org.apache.commons.jxpath.ri.model.NodePointer