com.icl.saxon.tree
Class AttributeImpl
- Attr, DOMLocator, Node, NodeInfo, Source, SourceLocator
(package private) final class AttributeImpl
implements Attr
A node in the XML parse tree representing an attribute. Note that this is
generated only "on demand", when the attribute is selected by a select pattern.
compareOrder , generateId , getAttributeValue , getAttributeValue , getAttributes , getBaseURI , getChildNodes , getDisplayName , getDocumentElement , getDocumentRoot , getEnumeration , getFingerprint , getFirstChild , getLastChild , getLineNumber , getLocalName , getNameCode , getNamePool , getNextInDocument , getNextSibling , getOriginatingNode , getParent , getPrefix , getPreviousInDocument , getPreviousSibling , getSequenceNumber , getSystemId , getURI , hasAttributes , hasChildNodes , isSameNodeInfo , outputNamespaceNodes , removeNode , setSystemId |
appendChild , appendData , cloneNode , compareDocumentPosition , compareOrder , copyStringValue , createAttribute , createAttributeNS , createCDATASection , createComment , createDocumentFragment , createElement , createElementNS , createEntityReference , createProcessingInstruction , createTextNode , deleteData , disallowUpdate , generateId , getAttribute , getAttributeNS , getAttributeNode , getAttributeNodeNS , getAttributeValue , getAttributeValue , getAttributes , getBaseURI , getChildNodes , getColumnNumber , getData , getDisplayName , getDoctype , getDocumentElement , getDocumentRoot , getElementById , getElementsByTagName , getElementsByTagNameNS , getEnumeration , getFeature , getFingerprint , getFirstChild , getImplementation , getLastChild , getLength , getLineNumber , getLocalName , getName , getNameCode , getNamespaceURI , getNextSibling , getNodeName , getNodeValue , getOriginatingNode , getOwnerDocument , getOwnerElement , getParent , getParentNode , getPrefix , getPreviousSibling , getPublicId , getSchemaTypeInfo , getSpecified , getSystemId , getTagName , getTextContent , getURI , getUserData , getValue , getWholeText , hasAttribute , hasAttributeNS , hasAttributes , hasChildNodes , importNode , insertBefore , insertData , isDefaultNamespace , isElementContentWhitespace , isEqualNode , isId , isSameNode , isSameNodeInfo , isSupported , lookupNamespaceURI , lookupPrefix , normalize , outputNamespaceNodes , removeAttribute , removeAttributeNS , removeAttributeNode , removeChild , replaceChild , replaceData , replaceWholeText , setAttributeNS , setAttributeNode , setAttributeNodeNS , setData , setIdAttribute , setIdAttributeNS , setIdAttributeNode , setNodeValue , setPrefix , setTextContent , setUserData , setValue , splitText , substringData , supports |
AttributeImpl
public AttributeImpl(ElementImpl element,
int index)
Construct an Attribute node for the n'th attribute of a given element
element
- The element containing the relevant attributeindex
- The index position of the attribute starting at zero
copy
public void copy(Outputter out)
throws TransformerException
Copy this node to a given outputter
- copy in interface NodeInfo
generateId
public String generateId()
Get sequential key. Returns key of owning element with the attribute name as a suffix
- generateId in interface NodeInfo
- generateId in interface NodeImpl
getNextSibling
public Node getNextSibling()
Get next sibling - not defined for attributes
- getNextSibling in interface NodeImpl
getNodeType
public final short getNodeType()
Return the type of node.
- getNodeType in interface NodeInfo
getPreviousSibling
public Node getPreviousSibling()
Get previous sibling - not defined for attributes
- getPreviousSibling in interface NodeImpl
getSequenceNumber
protected long getSequenceNumber()
Get the node sequence number (in document order). Sequence numbers are monotonic but not
consecutive. In the current implementation, parent nodes (elements and roots) have a zero
least-significant word, while namespaces, attributes, text nodes, comments, and PIs have
the top word the same as their owner and the bottom half reflecting their relative position.
- getSequenceNumber in interface NodeImpl
getStringValue
public String getStringValue()
Return the character value of the node.
- getStringValue in interface NodeInfo
isSameNodeInfo
public boolean isSameNodeInfo(NodeInfo other)
Determine whether this is the same node as another node
- isSameNodeInfo in interface NodeInfo
- isSameNodeInfo in interface NodeImpl
- true if this Node object and the supplied Node object represent the
same node in the tree.