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.NodePointerA 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasPath()intcompareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer pointer1, org.apache.commons.jxpath.ri.model.NodePointer pointer2)booleanequals(Object object)ObjectgetBaseValue()ObjectgetImmediateNode()intgetLength()org.apache.commons.jxpath.ri.QNamegetName()StringgetNamespaceURI()ObjectgetValue()inthashCode()booleanisActual()booleanisCollection()booleanisLeaf()voidremove()Removes the attribute pointed to.voidsetValue(Object value)Sets the value of this attribute.booleantestNode(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:
getNamein classorg.apache.commons.jxpath.ri.model.NodePointer
-
getNamespaceURI
public String getNamespaceURI()
- Overrides:
getNamespaceURIin classorg.apache.commons.jxpath.ri.model.NodePointer
-
getValue
public Object getValue()
- Specified by:
getValuein interfaceorg.apache.commons.jxpath.Pointer- Overrides:
getValuein classorg.apache.commons.jxpath.ri.model.NodePointer
-
getBaseValue
public Object getBaseValue()
- Specified by:
getBaseValuein classorg.apache.commons.jxpath.ri.model.NodePointer
-
isCollection
public boolean isCollection()
- Specified by:
isCollectionin classorg.apache.commons.jxpath.ri.model.NodePointer
-
getLength
public int getLength()
- Specified by:
getLengthin classorg.apache.commons.jxpath.ri.model.NodePointer
-
getImmediateNode
public Object getImmediateNode()
- Specified by:
getImmediateNodein classorg.apache.commons.jxpath.ri.model.NodePointer
-
isActual
public boolean isActual()
- Overrides:
isActualin classorg.apache.commons.jxpath.ri.model.NodePointer
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeafin classorg.apache.commons.jxpath.ri.model.NodePointer
-
testNode
public boolean testNode(org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest)
- Overrides:
testNodein classorg.apache.commons.jxpath.ri.model.NodePointer
-
setValue
public void setValue(Object value)
Sets the value of this attribute.- Specified by:
setValuein interfaceorg.apache.commons.jxpath.Pointer- Specified by:
setValuein classorg.apache.commons.jxpath.ri.model.NodePointer- Parameters:
value- to set
-
remove
public void remove()
Removes the attribute pointed to.- Overrides:
removein classorg.apache.commons.jxpath.ri.model.NodePointer
-
asPath
public String asPath()
- Specified by:
asPathin interfaceorg.apache.commons.jxpath.Pointer- Overrides:
asPathin 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:
compareChildNodePointersin classorg.apache.commons.jxpath.ri.model.NodePointer
-
-