Class PropertyOwnerPointer
java.lang.Object
org.apache.commons.jxpath.ri.model.NodePointer
org.apache.commons.jxpath.ri.model.beans.PropertyOwnerPointer
- All Implemented Interfaces:
- Serializable,- Cloneable,- Comparable,- Pointer
- Direct Known Subclasses:
- BeanPointer,- DynaBeanPointer,- DynamicPointer,- NullPointer
A pointer describing a node that has properties, each of which could be a collection.
- See Also:
- 
Field SummaryFields inherited from class org.apache.commons.jxpath.ri.model.NodePointerindex, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedPropertyOwnerPointer(NodePointer parent) Constructs a new PropertyOwnerPointer.protectedPropertyOwnerPointer(NodePointer parent, Locale locale) Constructs a new PropertyOwnerPointer.
- 
Method SummaryModifier and TypeMethodDescriptionattributeIterator(QName qName) Returns a NodeIterator that iterates over all attributes of the current node matching the supplied node name (could have a wildcard).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.intcompareChildNodePointers(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.createNodeIterator(String property, boolean reverse, NodePointer startWith) Create a NodeIterator.Returns the object the pointer points to; does not convert it to a "canonical" type.abstract QNamegetName()Gets the name of this node.abstract PropertyPointerGets a PropertyPointer for this PropertyOwnerPointer.booleanTests whether dynamic property declaration is supported.booleanisValidProperty(QName qName) Tests whethernameis a valid child name for this PropertyOwnerPointer.voidremove()If this is a root node pointer, throws an exception; otherwise forwards the call to the parent node.voidsetIndex(int index) Sets the index of this NodePointer.voidThrows 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.NodePointerasPath, clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, escape, getAbstractFactory, getBaseValue, getDefaultNamespaceURI, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLength, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, handle, handle, isActual, isAttribute, isCollection, isContainer, isDefaultNamespace, isLanguage, isLeaf, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setExceptionHandler, setNamespaceResolver, testNode, toString, verify
- 
Constructor Details- 
PropertyOwnerPointerConstructs a new PropertyOwnerPointer.- Parameters:
- parent- pointer
 
- 
PropertyOwnerPointerConstructs a new PropertyOwnerPointer.- Parameters:
- parent- parent pointer
- locale- Locale
 
 
- 
- 
Method Details- 
attributeIteratorDescription copied from class:NodePointerReturns a NodeIterator that iterates over all attributes of the current node matching the supplied node name (could have a wildcard). May return null if the object does not support the attributes.- Overrides:
- attributeIteratorin class- NodePointer
- Parameters:
- qName- the attribute name to test
- Returns:
- NodeIterator
 
- 
childIteratorDescription copied from class:NodePointerReturns a NodeIterator that iterates over all children or all children that match the given NodeTest, starting with the specified one.- Overrides:
- childIteratorin class- NodePointer
- Parameters:
- test- NodeTest to filter children
- reverse- specified iteration direction
- startWith- the NodePointer to start with
- Returns:
- NodeIterator
 
- 
compareChildNodePointersDescription copied from class:NodePointerCompares two child NodePointers and returns a positive number, zero or a positive number according to the order of the pointers.- Specified by:
- compareChildNodePointersin class- NodePointer
- Parameters:
- pointer1- first pointer to be compared
- pointer2- second pointer to be compared
- Returns:
- int per Java comparison conventions
 
- 
createNodeIteratorCreate a NodeIterator.- Parameters:
- property- property name
- reverse- whether to iterate in reverse
- startWith- first pointer to return
- Returns:
- NodeIterator
 
- 
getImmediateNodeDescription copied from class:NodePointerReturns the object the pointer points to; does not convert it to a "canonical" type.- Specified by:
- getImmediateNodein class- NodePointer
- Returns:
- Object node
 
- 
getNameDescription copied from class:NodePointerGets the name of this node. Can be null.- Specified by:
- getNamein class- NodePointer
- Returns:
- QName The name of this node. Can be null.
 
- 
getPropertyPointerGets a PropertyPointer for this PropertyOwnerPointer.- Returns:
- PropertyPointer
 
- 
isDynamicPropertyDeclarationSupportedTests whether dynamic property declaration is supported.- Returns:
- true if the property owner can set a property "does not exist". A good example is a Map. You can always assign a value to any key even if it has never been "declared".
 
- 
isValidPropertyTests whethernameis a valid child name for this PropertyOwnerPointer.- Parameters:
- qName- the QName to test
- Returns:
- trueif- QNameis a valid property name.
- Since:
- JXPath 1.3
 
- 
removeIf this is a root node pointer, throws an exception; otherwise forwards the call to the parent node.- Overrides:
- removein class- NodePointer
 
- 
setIndexDescription copied from class:NodePointerSets the index of this NodePointer.- Overrides:
- setIndexin class- NodePointer
- Parameters:
- index- int
 
- 
setValueThrows an exception if you try to change the root element, otherwise forwards the call to the parent pointer.- Specified by:
- setValuein interface- Pointer
- Specified by:
- setValuein class- NodePointer
- Parameters:
- value- to set
 
 
-