net.sf.saxon.tree
final class AttributeImpl extends NodeImpl
Constructor Summary | |
---|---|
AttributeImpl(ElementImpl element, int index)
Construct an Attribute node for the n'th attribute of a given element |
Method Summary | |
---|---|
void | copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId)
Copy this node to a given outputter |
void | generateId(FastStringBuffer buffer)
Get sequential key. |
int | getNameCode()
Get the name code, which enables the name to be located in the name pool |
NodeImpl | getNextInDocument(NodeImpl anchor)
Get the next node in document order (skipping attributes) |
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 |
protected long | getSequenceNumber()
Get the node sequence number (in document order). |
String | getStringValue()
Return the character value of the node. |
int | getTypeAnnotation()
Get the type annotation of this node, if any |
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 |
Parameters: element The element containing the relevant attribute index The index position of the attribute starting at zero
Parameters: buffer
Returns: Node.ATTRIBUTE
Returns: the attribute value
Since: 8.7 Previously, the effect of the equals() and hashCode() methods was not defined. Callers should therefore be aware that third party implementations of the NodeInfo interface may not implement the correct semantics.
Returns: true if this Node object and the supplied Node object represent the same node in the tree.