NodeInfo
, javax.xml.transform.dom.DOMLocator
, javax.xml.transform.Source
, javax.xml.transform.SourceLocator
, org.w3c.dom.Attr
, org.w3c.dom.Node
final class AttributeImpl extends NodeImpl implements org.w3c.dom.Attr
NODE_LETTER
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
emptyArray, index, parent
Constructor | Description |
---|---|
AttributeImpl(ElementImpl element,
int index) |
Construct an Attribute node for the n'th attribute of a given element
|
Modifier and Type | Method | Description |
---|---|---|
void |
copy(Outputter out) |
Copy this node to a given outputter
|
java.lang.String |
generateId() |
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)
|
org.w3c.dom.Node |
getNextSibling() |
Get next sibling - not defined for attributes
|
short |
getNodeType() |
Return the type of node.
|
NodeImpl |
getPreviousInDocument() |
Get the previous node in document order (skipping attributes)
|
org.w3c.dom.Node |
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.
|
boolean |
isSameNodeInfo(NodeInfo other) |
Determine whether this is the same node as another node
|
appendChild, appendData, cloneNode, compareDocumentPosition, copyStringValue, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, disallowUpdate, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getColumnNumber, getData, getDoctype, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getImplementation, getLength, getName, getNamespaceURI, getNodeName, getNodeValue, getOwnerDocument, getOwnerElement, getParentNode, getPublicId, getSchemaTypeInfo, getSpecified, getTagName, getTextContent, getUserData, getValue, getWholeText, hasAttribute, hasAttributeNS, importNode, insertBefore, insertData, isDefaultNamespace, isElementContentWhitespace, isEqualNode, isId, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceChild, replaceData, replaceWholeText, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setUserData, setValue, splitText, substringData, supports
getName, getOwnerElement, getSchemaTypeInfo, getSpecified, getValue, isId, setValue
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
compareOrder, getAttributes, getAttributeValue, getAttributeValue, getBaseURI, getChildNodes, getDisplayName, getDocumentElement, getDocumentRoot, getEnumeration, getFingerprint, getFirstChild, getLastChild, getLineNumber, getLocalName, getNamePool, getOriginatingNode, getParent, getPrefix, getSystemId, getURI, hasAttributes, hasChildNodes, outputNamespaceNodes, removeNode, setSystemId
public 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 NodeInfo
getNameCode
in class NodeImpl
allocate
,
getFingerprint
public boolean isSameNodeInfo(NodeInfo other)
isSameNodeInfo
in interface NodeInfo
isSameNodeInfo
in class NodeImpl
protected long getSequenceNumber()
getSequenceNumber
in class NodeImpl
public final short getNodeType()
getNodeType
in interface org.w3c.dom.Node
getNodeType
in interface NodeInfo
public java.lang.String getStringValue()
getStringValue
in interface NodeInfo
public org.w3c.dom.Node getNextSibling()
getNextSibling
in interface org.w3c.dom.Node
getNextSibling
in class NodeImpl
public org.w3c.dom.Node getPreviousSibling()
getPreviousSibling
in interface org.w3c.dom.Node
getPreviousSibling
in class NodeImpl
public NodeImpl getPreviousInDocument()
getPreviousInDocument
in class NodeImpl
public NodeImpl getNextInDocument(NodeImpl anchor)
getNextInDocument
in class NodeImpl
anchor
- : the scan stops when it reaches a node that is not a descendant of the specified
anchor nodepublic java.lang.String generateId()
generateId
in interface NodeInfo
generateId
in class NodeImpl