public class DynamicPointer extends PropertyOwnerPointer
PropertyPointer
.index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION
Constructor and Description |
---|
DynamicPointer(NodePointer parent,
QName name,
Object bean,
DynamicPropertyHandler handler)
Create a new DynamicPointer.
|
DynamicPointer(QName name,
Object bean,
DynamicPropertyHandler handler,
Locale locale)
Create a new DynamicPointer.
|
Modifier and Type | Method and Description |
---|---|
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(String property,
boolean reverse,
NodePointer startWith)
Create a NodeIterator.
|
boolean |
equals(Object object) |
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
|
childIterator, compareChildNodePointers, getImmediateNode, isValidProperty, remove, setIndex, setValue
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, handle, handle, isActual, isAttribute, isContainer, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setExceptionHandler, setNamespaceResolver, testNode, toString, verify
public DynamicPointer(QName name, Object bean, DynamicPropertyHandler handler, Locale locale)
name
- property namebean
- owning beanhandler
- DynamicPropertyHandlerlocale
- Localepublic DynamicPointer(NodePointer parent, QName name, Object bean, DynamicPropertyHandler handler)
parent
- parent pointername
- property namebean
- owning beanhandler
- DynamicPropertyHandlerpublic PropertyPointer getPropertyPointer()
PropertyOwnerPointer
getPropertyPointer
in class PropertyOwnerPointer
public NodeIterator createNodeIterator(String property, boolean reverse, NodePointer startWith)
PropertyOwnerPointer
createNodeIterator
in class PropertyOwnerPointer
property
- property namereverse
- whether to iterate in reversestartWith
- first pointer to returnpublic NodeIterator attributeIterator(QName name)
NodePointer
attributeIterator
in class PropertyOwnerPointer
name
- the attribute name to testpublic QName getName()
NodePointer
getName
in class PropertyOwnerPointer
public boolean isDynamicPropertyDeclarationSupported()
PropertyOwnerPointer
isDynamicPropertyDeclarationSupported
in class PropertyOwnerPointer
public 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 String asPath()
NodePointer
asPath
in interface Pointer
asPath
in class NodePointer
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.