|
||||||||||
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.PropertyPointer | +--org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer
Pointer pointing to a property of a JavaBean.
Field Summary |
Fields inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyPointer |
bean, propertyIndex, UNSPECIFIED_PROPERTY |
Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION |
Constructor Summary | |
BeanPropertyPointer(NodePointer parent,
JXPathBeanInfo beanInfo)
|
Method Summary | |
NodePointer |
createChild(JXPathContext context,
QName name,
int index)
Called by a child pointer when it needs to create a parent object for a non-existent collection element. |
NodePointer |
createChild(JXPathContext context,
QName name,
int index,
java.lang.Object value)
Called by a child pointer if that child needs to assign the value supplied in the createPath(context, value) call to a non-existent node. |
NodePointer |
createPath(JXPathContext context)
Called by a child pointer when it needs to create a parent object. |
java.lang.Object |
getBaseValue()
The value of the currently selected property. |
int |
getLength()
If the property contains a collection, then the length of that collection, otherwise - 1. |
java.lang.Object |
getNodeValue()
If index == WHOLE_COLLECTION, the value of the property, otherwise the value of the index'th element of the collection represented by the property. |
int |
getPropertyCount()
Number of the bean's properties. |
protected java.beans.PropertyDescriptor[] |
getPropertyDescriptors()
|
java.lang.String |
getPropertyName()
Name of the currently selected property. |
java.lang.String[] |
getPropertyNames()
Names of all properties, sorted alphabetically |
protected boolean |
isActualProperty()
|
boolean |
isNode()
This type of node is auxiliary. |
void |
remove()
Remove the node of the object graph this pointer points to. |
void |
setIndex(int index)
|
void |
setPropertyIndex(int index)
Selects a property by its offset in the alphabetically sorted list. |
void |
setPropertyName(java.lang.String propertyName)
Select a property by name |
void |
setValue(java.lang.Object value)
If index == WHOLE_COLLECTION, change the value of the property, otherwise change the value of the index'th element of the collection represented by the property. |
Methods inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyPointer |
compareChildNodePointers, equals, getBean, getName, getPropertyIndex, getValuePointer, hashCode, isActual, isCollection |
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
asPath, attributeIterator, childIterator, clone, compareTo, createPath, getDefaultNamespaceURI, getExpandedName, getIndex, getLocale, getNamespaceURI, getNamespaceURI, getParent, getPointerByID, getPointerByKey, getValue, isDefaultNamespace, isLanguage, isLeaf, 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 BeanPropertyPointer(NodePointer parent, JXPathBeanInfo beanInfo)
Method Detail |
public boolean isNode()
isNode
in class NodePointer
public int getPropertyCount()
getPropertyCount
in class PropertyPointer
public java.lang.String[] getPropertyNames()
getPropertyNames
in class PropertyPointer
public void setPropertyName(java.lang.String propertyName)
setPropertyName
in class PropertyPointer
public void setPropertyIndex(int index)
setPropertyIndex
in class PropertyPointer
public int getLength()
getLength
in class NodePointer
public java.lang.Object getBaseValue()
getBaseValue
in class NodePointer
public void setIndex(int index)
setIndex
in class NodePointer
public java.lang.Object getNodeValue()
getNodeValue
in class PropertyPointer
protected boolean isActualProperty()
isActualProperty
in class PropertyPointer
public void setValue(java.lang.Object value)
setValue
in interface Pointer
setValue
in class NodePointer
public NodePointer createPath(JXPathContext context)
NodePointer
createPath
in class NodePointer
public NodePointer createChild(JXPathContext context, QName name, int index)
NodePointer
createChild
in class NodePointer
public NodePointer createChild(JXPathContext context, QName name, int index, java.lang.Object value)
NodePointer
createChild
in class NodePointer
public void remove()
NodePointer
remove
in class NodePointer
public java.lang.String getPropertyName()
getPropertyName
in class PropertyPointer
protected java.beans.PropertyDescriptor[] getPropertyDescriptors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |