| java.lang.Object org.apache.commons.jxpath.ri.model.NodePointer org.apache.commons.jxpath.ri.model.beans.PropertyPointer org.apache.commons.jxpath.ri.model.dynabeans.DynaBeanPropertyPointer
DynaBeanPropertyPointer | public class DynaBeanPropertyPointer extends PropertyPointer (Code) | | Pointer pointing to a property of a DynaBean.
author: Dmitri Plotnikov version: $Revision: 1.12 $ $Date: 2004/04/04 22:06:35 $ |
Method Summary | |
public Object | getBaseValue() | public Object | getImmediateNode() If index == WHOLE_COLLECTION, the value of the property, otherwise
the value of the index'th element of the collection represented by the
property. | public int | getPropertyCount() Number of the DP object's properties. | public int | getPropertyIndex() Index of the currently selected property in the list of all
properties sorted alphabetically. | public String | getPropertyName() Returns the name of the currently selected property or "*"
if none has been selected. | public String[] | getPropertyNames() | protected boolean | isActualProperty() | public boolean | isContainer() This type of node is auxiliary. | protected boolean | isIndexedProperty() | public void | remove() | public void | setPropertyIndex(int index) Index a property by its index in the list of all
properties sorted alphabetically. | public void | setPropertyName(String propertyName) Select a property by name. | public void | setValue(Object value) If index == WHOLE_COLLECTION, change the value of the property, otherwise
change the value of the index'th element of the collection
represented by the property. |
DynaBeanPropertyPointer | public DynaBeanPropertyPointer(NodePointer parent, DynaBean dynaBean)(Code) | | |
getImmediateNode | public Object getImmediateNode()(Code) | | If index == WHOLE_COLLECTION, the value of the property, otherwise
the value of the index'th element of the collection represented by the
property. If the property is not a collection, index should be zero
and the value will be the property itself.
|
getPropertyCount | public int getPropertyCount()(Code) | | Number of the DP object's properties.
|
getPropertyIndex | public int getPropertyIndex()(Code) | | Index of the currently selected property in the list of all
properties sorted alphabetically.
|
getPropertyName | public String getPropertyName()(Code) | | Returns the name of the currently selected property or "*"
if none has been selected.
|
getPropertyNames | public String[] getPropertyNames()(Code) | | Names of all properties, sorted alphabetically
|
isActualProperty | protected boolean isActualProperty()(Code) | | Returns true if the bean has the currently selected property
|
isContainer | public boolean isContainer()(Code) | | This type of node is auxiliary.
|
isIndexedProperty | protected boolean isIndexedProperty()(Code) | | |
remove | public void remove()(Code) | | |
setPropertyIndex | public void setPropertyIndex(int index)(Code) | | Index a property by its index in the list of all
properties sorted alphabetically.
|
setPropertyName | public void setPropertyName(String propertyName)(Code) | | Select a property by name.
|
setValue | public void setValue(Object value)(Code) | | If index == WHOLE_COLLECTION, change the value of the property, otherwise
change the value of the index'th element of the collection
represented by the property.
|
Methods inherited from org.apache.commons.jxpath.ri.model.NodePointer | public String asPath()(Code)(Java Doc) public NodeIterator attributeIterator(QName qname)(Code)(Java Doc) public NodeIterator childIterator(NodeTest test, boolean reverse, NodePointer startWith)(Code)(Java Doc) public Object clone()(Code)(Java Doc) abstract public int compareChildNodePointers(NodePointer pointer1, NodePointer pointer2)(Code)(Java Doc) public int compareTo(Object object)(Code)(Java Doc) public NodePointer createAttribute(JXPathContext context, QName name)(Code)(Java Doc) public NodePointer createChild(JXPathContext context, QName name, int index, Object value)(Code)(Java Doc) public NodePointer createChild(JXPathContext context, QName name, int index)(Code)(Java Doc) public NodePointer createPath(JXPathContext context, Object value)(Code)(Java Doc) public NodePointer createPath(JXPathContext context)(Code)(Java Doc) abstract public Object getBaseValue()(Code)(Java Doc) protected String getDefaultNamespaceURI()(Code)(Java Doc) abstract public Object getImmediateNode()(Code)(Java Doc) public NodePointer getImmediateParentPointer()(Code)(Java Doc) public NodePointer getImmediateValuePointer()(Code)(Java Doc) public int getIndex()(Code)(Java Doc) abstract public int getLength()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) abstract public QName getName()(Code)(Java Doc) public NamespaceResolver getNamespaceResolver()(Code)(Java Doc) public String getNamespaceURI(String prefix)(Code)(Java Doc) public String getNamespaceURI()(Code)(Java Doc) public Object getNode()(Code)(Java Doc) public Object getNodeValue()(Code)(Java Doc) public NodePointer getParent()(Code)(Java Doc) public Pointer getPointerByID(JXPathContext context, String id)(Code)(Java Doc) public Pointer getPointerByKey(JXPathContext context, String key, String value)(Code)(Java Doc) public Object getRootNode()(Code)(Java Doc) public Object getValue()(Code)(Java Doc) public NodePointer getValuePointer()(Code)(Java Doc) public boolean isActual()(Code)(Java Doc) public boolean isAttribute()(Code)(Java Doc) abstract public boolean isCollection()(Code)(Java Doc) public boolean isContainer()(Code)(Java Doc) protected boolean isDefaultNamespace(String prefix)(Code)(Java Doc) public boolean isLanguage(String lang)(Code)(Java Doc) abstract public boolean isLeaf()(Code)(Java Doc) public boolean isNode()(Code)(Java Doc) public boolean isRoot()(Code)(Java Doc) public NodeIterator namespaceIterator()(Code)(Java Doc) public NodePointer namespacePointer(String namespace)(Code)(Java Doc) public static NodePointer newChildNodePointer(NodePointer parent, QName name, Object bean)(Code)(Java Doc) public static NodePointer newNodePointer(QName name, Object bean, Locale locale)(Code)(Java Doc) public void printPointerChain()(Code)(Java Doc) public void remove()(Code)(Java Doc) public void setAttribute(boolean attribute)(Code)(Java Doc) public void setIndex(int index)(Code)(Java Doc) public void setNamespaceResolver(NamespaceResolver namespaceResolver)(Code)(Java Doc) abstract public void setValue(Object value)(Code)(Java Doc) public boolean testNode(NodeTest test)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|