org.apache.commons.jxpath.ri.model.beans
Class PropertyOwnerPointer
java.lang.Object
|
+--org.apache.commons.jxpath.ri.model.NodePointer
|
+--org.apache.commons.jxpath.ri.model.beans.PropertyOwnerPointer
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable, Pointer, java.io.Serializable
- Direct Known Subclasses:
- BeanPointer, DynaBeanPointer, DynamicPointer, NullPointer
- public abstract class PropertyOwnerPointer
- extends NodePointer
A pointer describing a node that has properties, each of which could be
a collection.
- Version:
- $Revision: 1.14 $ $Date: 2003/03/11 00:59:25 $
- Author:
- Dmitri Plotnikov
- See Also:
- Serialized Form
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
asPath, clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, getBaseValue, getDefaultNamespaceURI, getExpandedName, getImmediateValuePointer, getIndex, getLength, getLocale, getNamespaceURI, getNamespaceURI, getNode, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isCollection, isContainer, isDefaultNamespace, isLanguage, isLeaf, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, testNode, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PropertyOwnerPointer
protected PropertyOwnerPointer(NodePointer parent,
java.util.Locale locale)
PropertyOwnerPointer
protected PropertyOwnerPointer(NodePointer parent)
childIterator
public NodeIterator childIterator(NodeTest test,
boolean reverse,
NodePointer startWith)
- Description copied from class:
NodePointer
- Returns a NodeIterator that iterates over all children or all children
that match the given NodeTest, starting with the specified one.
- Overrides:
childIterator
in class NodePointer
createNodeIterator
public NodeIterator createNodeIterator(java.lang.String property,
boolean reverse,
NodePointer startWith)
attributeIterator
public NodeIterator attributeIterator(QName name)
- Description copied from class:
NodePointer
- Returns a NodeIterator that iterates over all attributes of the current
node matching the supplied node name (could have a wildcard).
May return null if the object does not support the attributes.
- Overrides:
attributeIterator
in class NodePointer
setIndex
public void setIndex(int index)
- Overrides:
setIndex
in class NodePointer
getImmediateNode
public java.lang.Object getImmediateNode()
- Description copied from class:
NodePointer
- Returns the object the pointer points to; does not convert it
to a "canonical" type.
- Overrides:
getImmediateNode
in class NodePointer
getName
public abstract QName getName()
- Description copied from class:
NodePointer
- Returns the name of this node. Can be null.
- Overrides:
getName
in class NodePointer
setValue
public void setValue(java.lang.Object value)
- Throws an exception if you try to change the root element, otherwise
forwards the call to the parent pointer.
- Overrides:
setValue
in class NodePointer
remove
public void remove()
- If this is a root node pointer, throws an exception; otherwise
forwards the call to the parent node.
- Overrides:
remove
in class NodePointer
getPropertyPointer
public abstract PropertyPointer getPropertyPointer()
compareChildNodePointers
public int compareChildNodePointers(NodePointer pointer1,
NodePointer pointer2)
- Description copied from class:
NodePointer
- Compares two child NodePointers and returns a positive number,
zero or a positive number according to the order of the pointers.
- Overrides:
compareChildNodePointers
in class NodePointer
Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.