org.apache.commons.jxpath.ri.model.dom

Class DOMAttributePointer

Implemented Interfaces:
Cloneable, Comparable, Pointer, Serializable

public class DOMAttributePointer
extends NodePointer

A Pointer that points to a DOM node.
Version:
$Revision: 1.15 $ $Date: 2004/04/01 02:55:32 $
Author:
Dmitri Plotnikov

Field Summary

Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer

UNKNOWN_NAMESPACE, WHOLE_COLLECTION, index, locale, parent

Constructor Summary

DOMAttributePointer(NodePointer parent, Attr attr)

Method Summary

String
asPath()
int
compareChildNodePointers(NodePointer pointer1, NodePointer pointer2)
boolean
equals(Object object)
Object
getBaseValue()
Object
getImmediateNode()
int
getLength()
QName
getName()
String
getNamespaceURI()
Object
getValue()
int
hashCode()
boolean
isActual()
boolean
isCollection()
boolean
isLeaf()
void
remove()
void
setValue(Object value)
Sets the value of this attribute.
boolean
testNode(NodeTest nodeTest)

Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer

asPath, attributeIterator, childIterator, clone, compareChildNodePointers, compareTo, createAttribute, createChild, createChild, createPath, createPath, getBaseValue, getDefaultNamespaceURI, getImmediateNode, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLength, getLocale, getName, 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, remove, setAttribute, setIndex, setNamespaceResolver, setValue, testNode, toString

Constructor Details

DOMAttributePointer

public DOMAttributePointer(NodePointer parent,
                           Attr attr)

Method Details

asPath

public String asPath()
Specified by:
asPath in interface Pointer
Overrides:
asPath in interface NodePointer

compareChildNodePointers

public int compareChildNodePointers(NodePointer pointer1,
                                    NodePointer pointer2)
Overrides:
compareChildNodePointers in interface NodePointer

equals

public boolean equals(Object object)

getBaseValue

public Object getBaseValue()
Overrides:
getBaseValue in interface NodePointer

getImmediateNode

public Object getImmediateNode()
Overrides:
getImmediateNode in interface NodePointer

getLength

public int getLength()
Overrides:
getLength in interface NodePointer

getName

public QName getName()
Overrides:
getName in interface NodePointer

getNamespaceURI

public String getNamespaceURI()
Overrides:
getNamespaceURI in interface NodePointer

getValue

public Object getValue()
Specified by:
getValue in interface Pointer
Overrides:
getValue in interface NodePointer

hashCode

public int hashCode()

isActual

public boolean isActual()
Overrides:
isActual in interface NodePointer

isCollection

public boolean isCollection()
Overrides:
isCollection in interface NodePointer

isLeaf

public boolean isLeaf()
Overrides:
isLeaf in interface NodePointer

remove

public void remove()
Overrides:
remove in interface NodePointer

setValue

public void setValue(Object value)
Sets the value of this attribute.
Specified by:
setValue in interface Pointer
Overrides:
setValue in interface NodePointer

testNode

public boolean testNode(NodeTest nodeTest)
Overrides:
testNode in interface NodePointer