final class AttributeImpl extends NodeImpl
| Modifier and Type | Field and Description |
|---|---|
(package private) ElementImpl |
element |
(package private) int |
index |
document, nameCode, nextSibNum, NODE_LETTER, nodeNum, parentNum, prevSibNum| Constructor and Description |
|---|
AttributeImpl(ElementImpl element,
int index)
Construct an Attribute node for the n'th attribute of a given element
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
Copy this node to a given outputter
|
void |
generateId(FastStringBuffer buffer)
Get sequential key.
|
String |
getDisplayName()
Obtain the displayable name of this attribute.
|
DocumentInfo |
getDocumentRoot()
Get the root (document) node
|
NamePool |
getNamePool()
Get the NamePool for the tree containing this node
|
NodeInfo |
getNextSibling()
Get next sibling - not defined for attributes
|
int |
getNodeKind()
Return the type of node.
|
NodeImpl |
getPreviousInDocument()
Get the previous node in document order (skipping attributes)
|
NodeInfo |
getPreviousSibling()
Get previous sibling - not defined for attributes
|
NodeInfo |
getRoot()
Get the root node of the tree (not necessarily a document node)
|
protected long |
getSequenceNumber()
Get the node sequence number (in document order).
|
String |
getStringValue()
Return the character value of the node.
|
int |
hashCode()
The hashCode() method obeys the contract for hashCode(): that is, if two objects are equal
(represent the same node) then they must have the same hashCode()
|
boolean |
isSameNodeInfo(NodeInfo other)
Determine whether this is the same node as another node
|
atomize, compareOrder, equals, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDocumentNumber, getFingerprint, getFirstChild, getLastChild, getLineNumber, getLocalPart, getNameCode, getNextInDocument, getParent, getPrefix, getPublicId, getStringValueCS, getSystemId, getTypeAnnotation, getTypedValue, getURI, hasChildNodes, init, iterateAxis, iterateAxis, sendNamespaceDeclarations, setSystemIdElementImpl element
int index
public AttributeImpl(ElementImpl element, int index)
element - The element containing the relevant attributeindex - The index position of the attribute starting at zeropublic NodeInfo getRoot()
public DocumentInfo getDocumentRoot()
getDocumentRoot in interface NodeInfogetDocumentRoot in class NodeImplpublic NamePool getNamePool()
getNamePool in interface NodeInfogetNamePool in class NodeImplpublic boolean isSameNodeInfo(NodeInfo other)
isSameNodeInfo in interface NodeInfoisSameNodeInfo in class NodeImplpublic int hashCode()
hashCode in interface NodeInfohashCode in class NodeImplprotected long getSequenceNumber()
getSequenceNumber in class NodeImplpublic final int getNodeKind()
public String getStringValue()
public NodeInfo getNextSibling()
getNextSibling in class NodeImplpublic NodeInfo getPreviousSibling()
getPreviousSibling in class NodeImplpublic NodeImpl getPreviousInDocument()
getPreviousInDocument in class NodeImplpublic void generateId(FastStringBuffer buffer)
generateId in interface NodeInfogenerateId in class NodeImplpublic String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class NodeImplpublic void copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
throws XPathException
XPathException