|
||||||||||
| 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
A pointer describing a node that has properties, each of which could be a collection.
| Field Summary |
| Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION |
| Constructor Summary | |
protected |
PropertyOwnerPointer(NodePointer parent)
|
protected |
PropertyOwnerPointer(NodePointer parent,
java.util.Locale locale)
|
| Method Summary | |
NodeIterator |
attributeIterator(QName name)
Returns a NodeIterator that iterates over all attributes of the current node matching the supplied node name (could have a wildcard). |
NodeIterator |
childIterator(NodeTest test,
boolean reverse,
NodePointer startWith)
Returns a NodeIterator that iterates over all children or all children that match the given NodeTest, starting with the specified one. |
int |
compareChildNodePointers(NodePointer pointer1,
NodePointer pointer2)
Compares two child NodePointers and returns a positive number, zero or a positive number according to the order of the pointers. |
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. |
abstract 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. |
abstract PropertyPointer |
getPropertyPointer()
|
boolean |
isCollection()
Returns true if the value of the pointer is an array or
a Collection. |
void |
setIndex(int index)
|
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.NodePointer |
asPath, clone, compareTo, createPath, createPath, getBaseValue, getDefaultNamespaceURI, getExpandedName, getIndex, getLength, getLocale, getNamespaceURI, getNamespaceURI, getParent, getPointerByID, getPointerByKey, getValue, getValuePointer, isActual, isDefaultNamespace, isLanguage, isLeaf, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, testNode, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected PropertyOwnerPointer(NodePointer parent,
java.util.Locale locale)
protected PropertyOwnerPointer(NodePointer parent)
| Method Detail |
public NodeIterator childIterator(NodeTest test,
boolean reverse,
NodePointer startWith)
NodePointer
childIterator in class NodePointerpublic NodeIterator attributeIterator(QName name)
NodePointer
attributeIterator in class NodePointerpublic boolean isCollection()
NodePointertrue if the value of the pointer is an array or
a Collection.
isCollection in class NodePointerpublic void setIndex(int index)
setIndex in class NodePointerpublic java.lang.Object getNodeValue()
NodePointer
getNodeValue in class NodePointerpublic abstract QName getName()
NodePointer
getName in class NodePointerpublic void setValue(java.lang.Object value)
NodePointer
setValue in interface PointersetValue in class NodePointerpublic abstract PropertyPointer getPropertyPointer()
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 NodePointer
public int compareChildNodePointers(NodePointer pointer1,
NodePointer pointer2)
NodePointer
compareChildNodePointers in class NodePointer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||