org.apache.commons.jxpath.ri.model.container

Class ContainerPointer

Implemented Interfaces:
Cloneable, Comparable, Pointer, Serializable

public class ContainerPointer
extends NodePointer

Transparent pointer to a Container. The getValue() method returns the contents of the container, rather than the container itself.
Version:
$Revision: 1.13 $ $Date: 2004/04/04 22:06:36 $
Author:
Dmitri Plotnikov

Field Summary

Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer

UNKNOWN_NAMESPACE, WHOLE_COLLECTION, index, locale, parent

Constructor Summary

ContainerPointer(Container container, Locale locale)
ContainerPointer(NodePointer parent, Container container)

Method Summary

String
asPath()
NodeIterator
attributeIterator(QName name)
NodeIterator
childIterator(NodeTest test, boolean reverse, NodePointer startWith)
int
compareChildNodePointers(NodePointer pointer1, NodePointer pointer2)
boolean
equals(Object object)
Object
getBaseValue()
Object
getImmediateNode()
NodePointer
getImmediateValuePointer()
int
getLength()
QName
getName()
String
getNamespaceURI(String prefix)
int
hashCode()
boolean
isCollection()
boolean
isContainer()
This type of node is auxiliary.
boolean
isLeaf()
NodeIterator
namespaceIterator()
NodePointer
namespacePointer(String namespace)
void
setValue(Object value)
boolean
testNode(NodeTest nodeTest)

Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer

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

Constructor Details

ContainerPointer

public ContainerPointer(Container container,
                        Locale locale)

ContainerPointer

public ContainerPointer(NodePointer parent,
                        Container container)

Method Details

asPath

public String asPath()
Specified by:
asPath in interface Pointer
Overrides:
asPath in interface NodePointer

attributeIterator

public NodeIterator attributeIterator(QName name)
Overrides:
attributeIterator in interface NodePointer

childIterator

public NodeIterator childIterator(NodeTest test,
                                  boolean reverse,
                                  NodePointer startWith)
Overrides:
childIterator in interface NodePointer

compareChildNodePointers

public int compareChildNodePointers(NodePointer pointer1,
                                    NodePointer pointer2)
Overrides:
compareChildNodePointers in interface NodePointer

equals

public boolean equals(Object object)

getBaseValue

public Object getBaseValue()
Overrides:
getBaseValue in interface NodePointer

getImmediateNode

public Object getImmediateNode()
Overrides:
getImmediateNode in interface NodePointer

getImmediateValuePointer

public NodePointer getImmediateValuePointer()
Overrides:
getImmediateValuePointer in interface NodePointer

getLength

public int getLength()
Overrides:
getLength in interface NodePointer

getName

public QName getName()
Overrides:
getName in interface NodePointer

getNamespaceURI

public String getNamespaceURI(String prefix)
Overrides:
getNamespaceURI in interface NodePointer

hashCode

public int hashCode()

isCollection

public boolean isCollection()
Overrides:
isCollection in interface NodePointer

isContainer

public boolean isContainer()
This type of node is auxiliary.
Overrides:
isContainer in interface NodePointer

isLeaf

public boolean isLeaf()
Overrides:
isLeaf in interface NodePointer

namespaceIterator

public NodeIterator namespaceIterator()
Overrides:
namespaceIterator in interface NodePointer

namespacePointer

public NodePointer namespacePointer(String namespace)
Overrides:
namespacePointer in interface NodePointer

setValue

public void setValue(Object value)
Specified by:
setValue in interface Pointer
Overrides:
setValue in interface NodePointer

testNode

public boolean testNode(NodeTest nodeTest)
Overrides:
testNode in interface NodePointer