java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, Pointerpublic class DynamicPropertyPointer extends PropertyPointer
| Modifier and Type | Field | Description |
|---|---|---|
private DynamicPropertyHandler |
handler |
|
private java.lang.String |
name |
|
private java.lang.String[] |
names |
|
private java.lang.String |
requiredPropertyName |
|
private static long |
serialVersionUID |
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTIONbean, propertyIndex, UNSPECIFIED_PROPERTY| Constructor | Description |
|---|---|
DynamicPropertyPointer(NodePointer parent,
DynamicPropertyHandler handler) |
Create a new DynamicPropertyPointer.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
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() |
Remove the current property.
|
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.
|
attributeIterator, childIterator, clone, compareTo, createAttribute, escape, getAbstractFactory, getDefaultNamespaceURI, getImmediateParentPointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isAttribute, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setIndex, setNamespaceResolver, testNode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompareChildNodePointers, createChild, createChild, equals, getBean, getImmediateValuePointer, getLength, getName, hashCode, isActual, isCollection, isLeafprivate static final long serialVersionUID
private DynamicPropertyHandler handler
private java.lang.String name
private java.lang.String[] names
private java.lang.String requiredPropertyName
public DynamicPropertyPointer(NodePointer parent, DynamicPropertyHandler handler)
parent - pointerhandler - DynamicPropertyHandlerpublic boolean isContainer()
isContainer in class NodePointerpublic int getPropertyCount()
getPropertyCount in class PropertyPointerpublic java.lang.String[] getPropertyNames()
getPropertyNames in class PropertyPointerpublic java.lang.String getPropertyName()
getPropertyName in class PropertyPointerpublic void setPropertyName(java.lang.String propertyName)
setPropertyName in class PropertyPointerpropertyName - to setpublic int getPropertyIndex()
getPropertyIndex in class PropertyPointerpublic void setPropertyIndex(int index)
setPropertyIndex in class PropertyPointerindex - to setpublic java.lang.Object getBaseValue()
getBaseValue in class NodePointerpublic java.lang.Object getImmediateNode()
getImmediateNode in class PropertyPointerprotected boolean isActualProperty()
isActualProperty in class PropertyPointerpublic void setValue(java.lang.Object value)
setValue in interface PointersetValue in class NodePointervalue - to setpublic NodePointer createPath(JXPathContext context)
NodePointercreatePath in class PropertyPointercontext - the owning JXPathContextpublic NodePointer createPath(JXPathContext context, java.lang.Object value)
NodePointercreatePath in class PropertyPointercontext - the owning JXPathContextvalue - the new value to setpublic void remove()
NodePointerremove in class NodePointerprivate void removeKey()
public java.lang.String asPath()
NodePointerasPath in interface PointerasPath in class NodePointer