final class TinyAttributeImpl extends TinyNodeImpl
NODE_LETTER, nodeNr, parent, treeALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES| Constructor and Description |
|---|
TinyAttributeImpl(TinyTree tree,
int nodeNr) |
| 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)
Generate id.
|
java.lang.String |
getDisplayName()
Get the display name of this node.
|
int |
getFingerprint()
Get the fingerprint of the node, used for matching names
|
int |
getLineNumber()
Get the line number of the node within its source document entity
|
java.lang.String |
getLocalPart()
Get the local name of this node.
|
int |
getNameCode()
Get the name code of the node, used for finding names in the name pool
|
int |
getNodeKind()
Return the type of node.
|
NodeInfo |
getParent()
Get the parent node
|
java.lang.String |
getPrefix()
Get the prefix part of the name of this node.
|
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).
|
java.lang.String |
getStringValue()
Return the string value of the node.
|
java.lang.CharSequence |
getStringValueCS()
Return the string value of the node.
|
int |
getTypeAnnotation()
Get the type annotation of this node, if any
The bit
NodeInfo.IS_DTD_TYPE (1<<30) will be set in the case of an attribute node if the type annotation
is one of ID, IDREF, or IDREFS and this is derived from DTD rather than schema validation. |
java.lang.String |
getURI()
Get the URI part of the name of this node.
|
boolean |
isId()
Determine whether this node has the is-id property
|
boolean |
isIdref()
Determine whether this node has the is-idref property
|
atomize, compareOrder, equals, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDocumentNumber, getDocumentRoot, getNamePool, getNodeNumber, getParentNodeNr, getPublicId, getSystemId, getTypedValue, hasChildNodes, hashCode, isAncestorOrSelf, isNilled, isSameNodeInfo, iterateAxis, iterateAxis, sendNamespaceDeclarations, setParentNode, setSystemIdpublic TinyAttributeImpl(TinyTree tree, int nodeNr)
public NodeInfo getParent()
getParent in interface NodeInfogetParent in class TinyNodeImplpublic NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class TinyNodeImplprotected long getSequenceNumber()
getSequenceNumber in class TinyNodeImplpublic final int getNodeKind()
Typepublic java.lang.CharSequence getStringValueCS()
getStringValueCS in interface ItemgetStringValueCS in interface ValueRepresentationgetStringValueCS in class TinyNodeImplItem.getStringValue()public java.lang.String getStringValue()
Item.getStringValueCS()public int getFingerprint()
getFingerprint in interface NodeInfogetFingerprint in class TinyNodeImplpublic int getNameCode()
getNameCode in interface NodeInfogetNameCode in class TinyNodeImplallocate,
getFingerprintpublic java.lang.String getPrefix()
getPrefix in interface NodeInfogetPrefix in class TinyNodeImplpublic java.lang.String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class TinyNodeImplpublic java.lang.String getLocalPart()
getLocalPart in interface NodeInfogetLocalPart in class TinyNodeImplpublic final java.lang.String getURI()
getURI in interface NodeInfogetURI in class TinyNodeImplpublic int getTypeAnnotation()
NodeInfo.IS_DTD_TYPE (1<<30) will be set in the case of an attribute node if the type annotation
is one of ID, IDREF, or IDREFS and this is derived from DTD rather than schema validation.
Returns UNTYPED_ATOMIC if there is no type annotationgetTypeAnnotation in interface NodeInfogetTypeAnnotation in class TinyNodeImplThe result is undefined for nodes other than elements and attributes.
public void generateId(FastStringBuffer buffer)
generateId in interface NodeInfogenerateId in class TinyNodeImplbuffer - Buffer to contain the generated ID valuepublic void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException
out - 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 LocationCopierXPathExceptionpublic int getLineNumber()
getLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in interface NodeInfogetLineNumber in class TinyNodeImplpublic boolean isId()
isId in interface ExtendedNodeInfoisId in class TinyNodeImplpublic boolean isIdref()
isIdref in interface ExtendedNodeInfoisIdref in class TinyNodeImpl