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:
-
Field Summary
Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION -
Constructor Summary
ConstructorsConstructorDescriptionSourceElementAttributePointer(org.apache.commons.jxpath.ri.model.NodePointer parent, SourceElement sourceElement, String name) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionasPath()intcompareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer pointer1, org.apache.commons.jxpath.ri.model.NodePointer pointer2) booleanintorg.apache.commons.jxpath.ri.QNamegetName()getValue()inthashCode()booleanisActual()booleanbooleanisLeaf()voidremove()Removes the attribute pointed to.voidSets 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 Details
-
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 Details
-
getName
public org.apache.commons.jxpath.ri.QName getName()- Specified by:
getNamein classorg.apache.commons.jxpath.ri.model.NodePointer
-
getNamespaceURI
- Overrides:
getNamespaceURIin classorg.apache.commons.jxpath.ri.model.NodePointer
-
getValue
- Specified by:
getValuein interfaceorg.apache.commons.jxpath.Pointer- Overrides:
getValuein classorg.apache.commons.jxpath.ri.model.NodePointer
-
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
- 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
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
- Specified by:
asPathin interfaceorg.apache.commons.jxpath.Pointer- Overrides:
asPathin classorg.apache.commons.jxpath.ri.model.NodePointer
-
hashCode
public int hashCode() -
equals
-
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
-