|
|||||||||||
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.dynamic.DynamicPropertyPointer
Pointer pointing to a property of an object with dynamic properties.
Field Summary | |
private DynamicPropertyHandler |
handler
|
private java.lang.String |
name
|
private java.lang.String[] |
names
|
private java.lang.String |
requiredPropertyName
|
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 | |
DynamicPropertyPointer(NodePointer parent,
DynamicPropertyHandler handler)
|
Method Summary | |
java.lang.String |
asPath()
Returns an XPath that maps to this Pointer. |
NodePointer |
createPath(JXPathContext context)
Called by a child pointer when it needs to create a parent object. |
NodePointer |
createPath(JXPathContext context,
java.lang.Object value)
Called directly by JXPathContext. |
private java.lang.String |
escape(java.lang.String string)
|
private AbstractFactory |
getAbstractFactory(JXPathContext context)
|
java.lang.Object |
getBaseValue()
Returns the value of the property, not an element of the collection represented by the property, if any. |
java.lang.Object |
getImmediateNode()
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 DP object's properties. |
int |
getPropertyIndex()
Index of the currently selected property in the list of all properties sorted alphabetically. |
java.lang.String |
getPropertyName()
Returns the name of the currently selected property or "*" if none has been selected. |
java.lang.String[] |
getPropertyNames()
Names of all properties, sorted alphabetically |
protected boolean |
isActualProperty()
A dynamic property is always considered actual - all keys are apparently existing with possibly the value of null. |
boolean |
isContainer()
This type of node is auxiliary. |
void |
remove()
Remove the node of the object graph this pointer points to. |
private void |
removeKey()
|
void |
setPropertyIndex(int index)
Index a property by its index in the list of all properties sorted alphabetically. |
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, createChild, createChild, equals, getBean, getImmediateValuePointer, getLength, getName, hashCode, isActual, isCollection, isLeaf |
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
attributeIterator, childIterator, clone, compareTo, createAttribute, getDefaultNamespaceURI, getImmediateParentPointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isAttribute, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setIndex, setNamespaceResolver, testNode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private DynamicPropertyHandler handler
private java.lang.String name
private java.lang.String[] names
private java.lang.String requiredPropertyName
Constructor Detail |
public DynamicPropertyPointer(NodePointer parent, DynamicPropertyHandler handler)
Method Detail |
public boolean isContainer()
isContainer
in class NodePointer
public int getPropertyCount()
getPropertyCount
in class PropertyPointer
public java.lang.String[] getPropertyNames()
getPropertyNames
in class PropertyPointer
public java.lang.String getPropertyName()
getPropertyName
in class PropertyPointer
public void setPropertyName(java.lang.String propertyName)
setPropertyName
in class PropertyPointer
public int getPropertyIndex()
getPropertyIndex
in class PropertyPointer
public void setPropertyIndex(int index)
setPropertyIndex
in class PropertyPointer
public java.lang.Object getBaseValue()
getBaseValue
in class NodePointer
public java.lang.Object getImmediateNode()
getImmediateNode
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 PropertyPointer
public NodePointer createPath(JXPathContext context, java.lang.Object value)
NodePointer
createPath
in class PropertyPointer
public void remove()
NodePointer
remove
in class NodePointer
private void removeKey()
public java.lang.String asPath()
NodePointer
asPath
in interface Pointer
asPath
in class NodePointer
private java.lang.String escape(java.lang.String string)
private AbstractFactory getAbstractFactory(JXPathContext context)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |