|
|||||||||||
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 | |
private static java.lang.Object |
UNINITIALIZED
|
private java.lang.Object |
value
|
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. |
NodeIterator |
createNodeIterator(java.lang.String property,
boolean reverse,
NodePointer startWith)
|
java.lang.Object |
getImmediateNode()
Returns the object the pointer points to; does not convert it to a "canonical" type. |
abstract QName |
getName()
Returns the name of this node. |
abstract PropertyPointer |
getPropertyPointer()
|
boolean |
isDynamicPropertyDeclarationSupported()
|
void |
remove()
If this is a root node pointer, throws an exception; otherwise forwards the call to the parent node. |
void |
setIndex(int index)
|
void |
setValue(java.lang.Object value)
Throws an exception if you try to change the root element, otherwise forwards the call to the parent pointer. |
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
asPath, clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, getBaseValue, getDefaultNamespaceURI, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLength, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isCollection, isContainer, isDefaultNamespace, isLanguage, isLeaf, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setNamespaceResolver, testNode, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.Object UNINITIALIZED
private java.lang.Object value
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 NodePointer
public NodeIterator createNodeIterator(java.lang.String property, boolean reverse, NodePointer startWith)
public NodeIterator attributeIterator(QName name)
NodePointer
attributeIterator
in class NodePointer
public void setIndex(int index)
setIndex
in class NodePointer
public java.lang.Object getImmediateNode()
NodePointer
getImmediateNode
in class NodePointer
public abstract QName getName()
NodePointer
getName
in class NodePointer
public void setValue(java.lang.Object value)
setValue
in interface Pointer
setValue
in class NodePointer
public void remove()
remove
in class NodePointer
public abstract PropertyPointer getPropertyPointer()
public boolean isDynamicPropertyDeclarationSupported()
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 |