|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.ri.model.NodePointer
org.apache.commons.jxpath.ri.model.beans.PropertyOwnerPointer
org.apache.commons.jxpath.ri.model.dynamic.DynamicPointer
public class DynamicPointer
A Pointer that points to an object with Dynamic Properties. It is used for
the first element of a path; following elements will by of type
PropertyPointer
.
Field Summary |
---|
Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
---|
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION |
Constructor Summary | |
---|---|
DynamicPointer(NodePointer parent,
QName name,
java.lang.Object bean,
DynamicPropertyHandler handler)
Create a new DynamicPointer. |
|
DynamicPointer(QName name,
java.lang.Object bean,
DynamicPropertyHandler handler,
java.util.Locale locale)
Create a new DynamicPointer. |
Method Summary | |
---|---|
java.lang.String |
asPath()
Returns an XPath that maps to this Pointer. |
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 |
createNodeIterator(java.lang.String property,
boolean reverse,
NodePointer startWith)
Create a NodeIterator. |
boolean |
equals(java.lang.Object object)
|
java.lang.Object |
getBaseValue()
Returns the DP object iself. |
int |
getLength()
Returns 1. |
QName |
getName()
Returns the name of this node. |
PropertyPointer |
getPropertyPointer()
Get a PropertyPointer for this PropertyOwnerPointer. |
int |
hashCode()
|
boolean |
isCollection()
Returns true if the value of the pointer is an array or
a Collection. |
boolean |
isDynamicPropertyDeclarationSupported()
Learn whether dynamic property declaration is supported. |
boolean |
isLeaf()
If true, this node does not have children |
Methods inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyOwnerPointer |
---|
childIterator, compareChildNodePointers, getImmediateNode, isValidProperty, remove, setIndex, setValue |
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
---|
clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, escape, getAbstractFactory, getDefaultNamespaceURI, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isContainer, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setNamespaceResolver, testNode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DynamicPointer(QName name, java.lang.Object bean, DynamicPropertyHandler handler, java.util.Locale locale)
name
- property namebean
- owning beanhandler
- DynamicPropertyHandlerlocale
- Localepublic DynamicPointer(NodePointer parent, QName name, java.lang.Object bean, DynamicPropertyHandler handler)
parent
- parent pointername
- property namebean
- owning beanhandler
- DynamicPropertyHandlerMethod Detail |
---|
public PropertyPointer getPropertyPointer()
PropertyOwnerPointer
getPropertyPointer
in class PropertyOwnerPointer
public NodeIterator createNodeIterator(java.lang.String property, boolean reverse, NodePointer startWith)
PropertyOwnerPointer
createNodeIterator
in class PropertyOwnerPointer
property
- property namereverse
- whether to iterate in reversestartWith
- first pointer to return
public NodeIterator attributeIterator(QName name)
NodePointer
attributeIterator
in class PropertyOwnerPointer
name
- the attribute name to test
public QName getName()
NodePointer
getName
in class PropertyOwnerPointer
public boolean isDynamicPropertyDeclarationSupported()
PropertyOwnerPointer
isDynamicPropertyDeclarationSupported
in class PropertyOwnerPointer
public java.lang.Object getBaseValue()
getBaseValue
in class NodePointer
public boolean isLeaf()
NodePointer
isLeaf
in class NodePointer
public boolean isCollection()
NodePointer
true
if the value of the pointer is an array or
a Collection.
isCollection
in class NodePointer
public int getLength()
getLength
in class NodePointer
public java.lang.String asPath()
NodePointer
asPath
in interface Pointer
asPath
in class NodePointer
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |