|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.BeanPointer
A Pointer that points to a JavaBean or a collection. It is the first element of a path, following elements will by of type PropertyPointer.
Field Summary |
Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION |
Constructor Summary | |
BeanPointer(NodePointer parent,
QName name,
java.lang.Object bean,
JXPathBeanInfo beanInfo)
|
|
BeanPointer(QName name,
java.lang.Object bean,
JXPathBeanInfo beanInfo,
java.util.Locale locale)
|
Method Summary | |
java.lang.String |
asPath()
Empty string |
boolean |
equals(java.lang.Object object)
|
java.lang.Object |
getBaseValue()
Returns the bean itself |
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 |
remove()
Remove the node of the object graph this pointer points to. |
void |
setValue(java.lang.Object value)
Throws an exception if you try to change the root element. |
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, testNode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BeanPointer(QName name, java.lang.Object bean, JXPathBeanInfo beanInfo, java.util.Locale locale)
public BeanPointer(NodePointer parent, QName name, java.lang.Object bean, JXPathBeanInfo beanInfo)
name
- is the name given to the first nodeMethod Detail |
public PropertyPointer getPropertyPointer()
getPropertyPointer
in class PropertyOwnerPointer
public QName getName()
NodePointer
getName
in class PropertyOwnerPointer
public java.lang.Object getBaseValue()
getBaseValue
in class NodePointer
public void setValue(java.lang.Object value)
setValue
in interface Pointer
setValue
in class PropertyOwnerPointer
public void remove()
NodePointer
remove
in class NodePointer
public int getLength()
getLength
in class NodePointer
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String asPath()
asPath
in interface Pointer
asPath
in class NodePointer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |