final class AttributeImpl extends NodeImpl implements ExtendedNodeInfo
index, NODE_LETTER, parentALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACESEMPTY_VALUE_ARRAY| 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.
|
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).
|
java.lang.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 |
isId()
Determine whether this node has the is-id property
|
boolean |
isIdref()
Determine whether this node has the is-idref property
|
boolean |
isNilled()
Determine whether the node has the is-nilled property
|
boolean |
isSameNodeInfo(NodeInfo other)
Determine whether this is the same node as another node
|
atomize, compareOrder, equals, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getFirstChild, getLastChild, getLineNumber, getLocalPart, getNamePool, getParent, getPrefix, getPublicId, getRoot, getStringValueCS, getSystemId, getTypedValue, getURI, hasChildNodes, iterateAxis, iterateAxis, sendNamespaceDeclarations, setSystemIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitatomize, compareOrder, equals, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNamePool, getParent, getPrefix, getRoot, getSystemId, getURI, hasChildNodes, iterateAxis, iterateAxis, sendNamespaceDeclarationsgetStringValueCS, getTypedValuepublic AttributeImpl(ElementImpl element, int index)
element - The element containing the relevant attributeindex - The index position of the attribute starting at zeropublic int getNameCode()
getNameCode in interface NodeInfogetNameCode in class NodeImplallocate,
getFingerprintpublic int getTypeAnnotation()
getTypeAnnotation in interface NodeInfogetTypeAnnotation in class NodeImplThe result is undefined for nodes other than elements and attributes.
public boolean isId()
isId in interface ExtendedNodeInfopublic boolean isIdref()
isIdref in interface ExtendedNodeInfopublic boolean isNilled()
isNilled in interface ExtendedNodeInfopublic boolean isSameNodeInfo(NodeInfo other)
isSameNodeInfo in interface NodeInfoisSameNodeInfo in class NodeImplother - the node to be compared with this nodepublic int hashCode()
hashCode in interface NodeInfohashCode in class NodeImplprotected long getSequenceNumber()
getSequenceNumber in class NodeImplpublic final int getNodeKind()
getNodeKind in interface NodeInfoTypepublic java.lang.String getStringValue()
getStringValue in interface ItemgetStringValue in interface NodeInfogetStringValue in interface ValueRepresentationItem.getStringValueCS()public NodeInfo getNextSibling()
getNextSibling in class NodeImplpublic NodeInfo getPreviousSibling()
getPreviousSibling in class NodeImplpublic NodeImpl getPreviousInDocument()
getPreviousInDocument in class NodeImplpublic NodeImpl getNextInDocument(NodeImpl anchor)
getNextInDocument in class NodeImplanchor - the scan stops when it reaches a node that is not a descendant of the specified
anchor nodepublic void generateId(FastStringBuffer buffer)
generateId in interface NodeInfogenerateId in class NodeImplbuffer - public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException
copy in interface NodeInfoout - the Receiver to which the node should be copiedwhichNamespaces - in the case of an element, controls
which namespace nodes should be copied. Values are NodeInfo.NO_NAMESPACES,
NodeInfo.LOCAL_NAMESPACES, NodeInfo.ALL_NAMESPACEScopyAnnotations - indicates whether the type annotations
of element and attribute nodes should be copiedlocationId - If non-zero, identifies the location of the instruction
that requested this copy. If zero, indicates that the location information
for the original node is to be copied; in this case the Receiver must be
a LocationCopierXPathException