|
|||||||||||
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 either the first element of a path or a pointer for a property value. Typically there is a BeanPropertyPointer between two BeanPointers in the chain.
Field Summary | |
private java.lang.Object |
bean
|
private JXPathBeanInfo |
beanInfo
|
private QName |
name
|
Fields inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyOwnerPointer |
|
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()
If the pointer has a parent, then parent's path. |
boolean |
equals(java.lang.Object object)
|
java.lang.Object |
getBaseValue()
Returns the bean itself |
int |
getLength()
Returns 1. |
QName |
getName()
Returns the name of this node. |
PropertyPointer |
getPropertyPointer()
|
int |
hashCode()
|
boolean |
isCollection()
Returns false |
boolean |
isLeaf()
If true, this node does not have children |
Methods inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyOwnerPointer |
attributeIterator, childIterator, compareChildNodePointers, createNodeIterator, getImmediateNode, isDynamicPropertyDeclarationSupported, remove, setIndex, setValue |
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, getDefaultNamespaceURI, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isContainer, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setNamespaceResolver, testNode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private QName name
private java.lang.Object bean
private JXPathBeanInfo beanInfo
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 boolean isCollection()
isCollection
in class NodePointer
public int getLength()
getLength
in class NodePointer
public boolean isLeaf()
NodePointer
isLeaf
in class NodePointer
public int hashCode()
public boolean equals(java.lang.Object 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 |