Class SourceElementAttributePointer
- java.lang.Object
-
- org.apache.commons.jxpath.ri.model.NodePointer
-
- org.apache.torque.generator.source.SourceElementAttributePointer
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
,org.apache.commons.jxpath.Pointer
public class SourceElementAttributePointer extends org.apache.commons.jxpath.ri.model.NodePointer
A node pointer pointing to an attribute of a SourceElement.- Version:
- $Id$
- Author:
- Dmitri Plotnikov, Thomas Fox
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SourceElementAttributePointer(org.apache.commons.jxpath.ri.model.NodePointer parent, SourceElement sourceElement, String name)
Constructor.
-
Method Summary
Modifier and Type Method Description String
asPath()
int
compareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer pointer1, org.apache.commons.jxpath.ri.model.NodePointer pointer2)
boolean
equals(Object object)
Object
getBaseValue()
Object
getImmediateNode()
int
getLength()
org.apache.commons.jxpath.ri.QName
getName()
String
getNamespaceURI()
Object
getValue()
int
hashCode()
boolean
isActual()
boolean
isCollection()
boolean
isLeaf()
void
remove()
Removes the attribute pointed to.void
setValue(Object value)
Sets the value of this attribute.boolean
testNode(org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest)
-
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer
attributeIterator, childIterator, clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, escape, getAbstractFactory, getDefaultNamespaceURI, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValuePointer, isAttribute, isContainer, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setIndex, setNamespaceResolver, toString
-
-
-
-
Constructor Detail
-
SourceElementAttributePointer
public SourceElementAttributePointer(org.apache.commons.jxpath.ri.model.NodePointer parent, SourceElement sourceElement, String name)
Constructor.- Parameters:
parent
- the parent pointer.sourceElement
- the SourceElement to which attribute is pointed.name
- the name of the attribute pointed to.
-
-
Method Detail
-
getName
public org.apache.commons.jxpath.ri.QName getName()
- Specified by:
getName
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
getNamespaceURI
public String getNamespaceURI()
- Overrides:
getNamespaceURI
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
getValue
public Object getValue()
- Specified by:
getValue
in interfaceorg.apache.commons.jxpath.Pointer
- Overrides:
getValue
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
getBaseValue
public Object getBaseValue()
- Specified by:
getBaseValue
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
isCollection
public boolean isCollection()
- Specified by:
isCollection
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
getLength
public int getLength()
- Specified by:
getLength
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
getImmediateNode
public Object getImmediateNode()
- Specified by:
getImmediateNode
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
isActual
public boolean isActual()
- Overrides:
isActual
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
testNode
public boolean testNode(org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest)
- Overrides:
testNode
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
setValue
public void setValue(Object value)
Sets the value of this attribute.- Specified by:
setValue
in interfaceorg.apache.commons.jxpath.Pointer
- Specified by:
setValue
in classorg.apache.commons.jxpath.ri.model.NodePointer
- Parameters:
value
- to set
-
remove
public void remove()
Removes the attribute pointed to.- Overrides:
remove
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
asPath
public String asPath()
- Specified by:
asPath
in interfaceorg.apache.commons.jxpath.Pointer
- Overrides:
asPath
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
compareChildNodePointers
public int compareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer pointer1, org.apache.commons.jxpath.ri.model.NodePointer pointer2)
- Specified by:
compareChildNodePointers
in classorg.apache.commons.jxpath.ri.model.NodePointer
-
-