|
||||||||||
| 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.NullPropertyPointer
| 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 | |
NullPropertyPointer(NodePointer parent)
|
|
| Method Summary | |
java.lang.String |
asPath()
Returns an XPath that maps to this Pointer. |
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. |
NodePointer |
createPath(JXPathContext context,
java.lang.Object value)
Called directly by JXPathContext. |
java.lang.Object |
getBaseValue()
Returns the value represented by the pointer before indexing. |
int |
getLength()
If the pointer represents a collection (or collection element), returns the length of the collection. |
QName |
getName()
Returns the name of this node. |
java.lang.Object |
getNodeValue()
Returns the object the pointer points to; does not convert it to a "canonical" type. |
int |
getPropertyCount()
|
java.lang.String |
getPropertyName()
|
java.lang.String[] |
getPropertyNames()
|
NodePointer |
getValuePointer()
Returns a NodePointer that can be used to access the currently selected property value. |
boolean |
isActual()
An actual pointer points to an existing part of an object graph, even if it is null. |
protected boolean |
isActualProperty()
|
boolean |
isCollection()
Returns true if the value of the pointer is an array or
a Collection. |
boolean |
isNode()
If false, this node is axiliary and can only be used as an intermediate in the chain of pointers. |
void |
setDynamic(boolean flag)
|
void |
setPropertyIndex(int index)
|
void |
setPropertyName(java.lang.String propertyName)
|
void |
setValue(java.lang.Object value)
Converts the value to the required type and changes the corresponding object to that value. |
| Methods inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyPointer |
compareChildNodePointers, equals, getBean, getPropertyIndex, hashCode |
| Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
attributeIterator, childIterator, clone, compareTo, getDefaultNamespaceURI, getExpandedName, getIndex, getLocale, getNamespaceURI, getNamespaceURI, getParent, getPointerByID, getPointerByKey, getValue, isDefaultNamespace, isLanguage, isLeaf, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, setIndex, testNode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NullPropertyPointer(NodePointer parent)
| Method Detail |
public QName getName()
NodePointer
getName in class PropertyPointerpublic void setPropertyIndex(int index)
setPropertyIndex in class PropertyPointerpublic int getLength()
NodePointer
getLength in class NodePointerpublic java.lang.Object getBaseValue()
NodePointer
getBaseValue in class NodePointerpublic java.lang.Object getNodeValue()
NodePointer
getNodeValue in class PropertyPointerpublic NodePointer getValuePointer()
PropertyPointer
getValuePointer in class PropertyPointerprotected boolean isActualProperty()
isActualProperty in class PropertyPointerpublic boolean isActual()
NodePointer
isActual in class PropertyPointerpublic boolean isNode()
NodePointer
isNode in class NodePointerpublic void setValue(java.lang.Object value)
NodePointer
setValue in interface PointersetValue in class NodePointerpublic NodePointer createPath(JXPathContext context)
NodePointer
createPath in class NodePointer
public NodePointer createPath(JXPathContext context,
java.lang.Object value)
NodePointer
createPath in class NodePointer
public NodePointer createChild(JXPathContext context,
QName name,
int index,
java.lang.Object value)
NodePointer
createChild in class NodePointer
public NodePointer createChild(JXPathContext context,
QName name,
int index)
NodePointer
createChild in class NodePointerpublic java.lang.String getPropertyName()
getPropertyName in class PropertyPointerpublic void setPropertyName(java.lang.String propertyName)
setPropertyName in class PropertyPointerpublic void setDynamic(boolean flag)
public boolean isCollection()
NodePointertrue if the value of the pointer is an array or
a Collection.
isCollection in class PropertyPointerpublic int getPropertyCount()
getPropertyCount in class PropertyPointerpublic java.lang.String[] getPropertyNames()
getPropertyNames in class PropertyPointerpublic java.lang.String asPath()
NodePointer
asPath in interface PointerasPath in class NodePointer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||