class ProxyAttributeImpl extends NodeImpl
ProxyElement
to implement lazy attribute loading.Modifier and Type | Field and Description |
---|---|
(package private) ProxyElement |
element |
(package private) int |
index |
document, nameCode, nextSibNum, NODE_LETTER, nodeNum, parentNum, prevSibNum
Constructor and Description |
---|
ProxyAttributeImpl(ProxyElement 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
|
int |
getNameCode()
Get the name code, which enables the name to be located in the name pool
|
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.
|
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, getNextInDocument, getParent, getPrefix, getPublicId, getStringValueCS, getSystemId, getTypeAnnotation, getTypedValue, getURI, hasChildNodes, hashCode, init, iterateAxis, iterateAxis, sendNamespaceDeclarations, setSystemId
ProxyElement element
int index
public ProxyAttributeImpl(ProxyElement 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
public NodeInfo getRoot()
public DocumentInfo getDocumentRoot()
getDocumentRoot
in interface NodeInfo
getDocumentRoot
in class NodeImpl
public NamePool getNamePool()
getNamePool
in interface NodeInfo
getNamePool
in class NodeImpl
public boolean isSameNodeInfo(NodeInfo other)
isSameNodeInfo
in interface NodeInfo
isSameNodeInfo
in class NodeImpl
protected long getSequenceNumber()
getSequenceNumber
in class NodeImpl
public final int getNodeKind()
public String getStringValue()
public NodeInfo getNextSibling()
getNextSibling
in class NodeImpl
public NodeInfo getPreviousSibling()
getPreviousSibling
in class NodeImpl
public NodeImpl getPreviousInDocument()
getPreviousInDocument
in class NodeImpl
public void generateId(FastStringBuffer buffer)
generateId
in interface NodeInfo
generateId
in class NodeImpl
public String getDisplayName()
getDisplayName
in interface NodeInfo
getDisplayName
in class NodeImpl
public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException
XPathException