org.apache.commons.jxpath.ri.model.beans
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.beans.DynamicPointer
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, Pointer

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: 2002/05/30 02:04:57 $
Author:
Dmitri Plotnikov

Field Summary
 
Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION
 
Constructor Summary
DynamicPointer(NodePointer parent, QName name, java.lang.Object bean, DynamicPropertyHandler handler)
           
DynamicPointer(QName name, java.lang.Object bean, DynamicPropertyHandler handler, java.util.Locale locale)
           
 
Method Summary
 java.lang.String asPath()
          Empty string
 boolean equals(java.lang.Object object)
           
 java.lang.Object getBaseValue()
          Returns the DP object iself.
 int getLength()
          If the bean is a collection, returns the length of that collection, otherwise returns 1.
 QName getName()
          Returns the name of this node.
 PropertyPointer getPropertyPointer()
           
 int hashCode()
           
 void setValue(java.lang.Object value)
          Throws UnsupportedOperationException.
 
Methods inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyOwnerPointer
attributeIterator, childIterator, compareChildNodePointers, createChild, createChild, getNodeValue, isCollection, setIndex
 
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer
clone, compareTo, createPath, createPath, getDefaultNamespaceURI, getExpandedName, getIndex, getLocale, getNamespaceURI, getNamespaceURI, getParent, getPointerByID, getPointerByKey, getValue, getValuePointer, isActual, isDefaultNamespace, isLanguage, isLeaf, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, testNode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

getPropertyPointer

public PropertyPointer getPropertyPointer()
Specified by:
getPropertyPointer in class PropertyOwnerPointer

getName

public QName getName()
Description copied from class: NodePointer
Returns the name of this node. Can be null.

Specified by:
getName in class PropertyOwnerPointer

getBaseValue

public java.lang.Object getBaseValue()
Returns the DP object iself.

Specified by:
getBaseValue in class NodePointer

setValue

public void setValue(java.lang.Object value)
Throws UnsupportedOperationException.

Specified by:
setValue in interface Pointer
Overrides:
setValue in class PropertyOwnerPointer

getLength

public int getLength()
If the bean is a collection, returns the length of that collection, otherwise returns 1.

Overrides:
getLength in class NodePointer

asPath

public java.lang.String asPath()
Empty string

Specified by:
asPath in interface 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 (c) 2001 - Apache Software Foundation