org.apache.commons.jxpath.ri.model.dynamic
Class DynamicPointer
java.lang.Object
|
+--org.apache.commons.jxpath.ri.model.NodePointer
|
+--org.apache.commons.jxpath.ri.model.beans.PropertyOwnerPointer
|
+--org.apache.commons.jxpath.ri.model.dynamic.DynamicPointer
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable, Pointer, java.io.Serializable
- public class DynamicPointer
- extends PropertyOwnerPointer
A Pointer that points to an object with Dynamic Properties. It is used for
the first element of a path; following elements will by of type
PropertyPointer.
- Version:
- $Revision: 1.3 $ $Date: 2003/03/11 00:59:29 $
- Author:
- Dmitri Plotnikov
- See Also:
- Serialized Form
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, getDefaultNamespaceURI, getExpandedName, getImmediateValuePointer, getIndex, getLocale, getNamespaceURI, getNamespaceURI, getNode, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isContainer, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, testNode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
DynamicPointer
public DynamicPointer(QName name,
java.lang.Object bean,
DynamicPropertyHandler handler,
java.util.Locale locale)
DynamicPointer
public DynamicPointer(NodePointer parent,
QName name,
java.lang.Object bean,
DynamicPropertyHandler handler)
getPropertyPointer
public PropertyPointer getPropertyPointer()
- Overrides:
getPropertyPointer
in class PropertyOwnerPointer
createNodeIterator
public NodeIterator createNodeIterator(java.lang.String property,
boolean reverse,
NodePointer startWith)
- Overrides:
createNodeIterator
in class PropertyOwnerPointer
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 PropertyOwnerPointer
getName
public QName getName()
- Description copied from class:
NodePointer
- Returns the name of this node. Can be null.
- Overrides:
getName
in class PropertyOwnerPointer
getBaseValue
public java.lang.Object getBaseValue()
- Returns the DP object iself.
- Overrides:
getBaseValue
in class NodePointer
isLeaf
public boolean isLeaf()
- Description copied from class:
NodePointer
- If true, this node does not have children
- Overrides:
isLeaf
in class NodePointer
isCollection
public boolean isCollection()
- Description copied from class:
NodePointer
- Returns
true
if the value of the pointer is an array or
a Collection.
- Overrides:
isCollection
in class NodePointer
getLength
public int getLength()
- Returns 1.
- Overrides:
getLength
in class NodePointer
asPath
public java.lang.String asPath()
- Description copied from class:
NodePointer
- Returns an XPath that maps to this Pointer.
- Overrides:
asPath
in class NodePointer
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.