org.apache.commons.jxpath.ri.model.beans
Class NullElementPointer
- Cloneable, Comparable, Pointer, Serializable
public class NullElementPointer
Used when there is a need to construct a Pointer for a collection element
that does not exist. For example, if the path is "foo[3]", but the
collection "foo" only has one element or is empty or is null, the
NullElementPointer can be used to capture this situation without putting a
regular NodePointer into an invalid state. Just create a NullElementPointer
with index 2 (= 3 - 1) and a "foo" pointer as the parent.
$Revision: 1.17 $ $Date: 2004/03/25 03:49:50 $
asPath , attributeIterator , childIterator , compareChildNodePointers , createChild , createChild , createPath , createPath , equals , getBaseValue , getImmediateNode , getLength , getName , getValuePointer , hashCode , isCollection , isContainer , isLeaf , namespaceIterator , namespacePointer , setIndex , setValue , testNode |
asPath , attributeIterator , childIterator , clone , compareChildNodePointers , compareTo , createAttribute , createChild , createChild , createPath , createPath , getBaseValue , getDefaultNamespaceURI , getImmediateNode , getImmediateParentPointer , getImmediateValuePointer , getIndex , getLength , getLocale , getName , getNamespaceResolver , getNamespaceURI , getNamespaceURI , getNode , 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 |
NullElementPointer
public NullElementPointer(NodePointer parent,
int index)