com.icl.saxon.tinytree
final class TinyAttributeImpl extends TinyNodeImpl implements Attr
Constructor Summary | |
---|---|
TinyAttributeImpl(TinyDocumentImpl doc, int nodeNr) |
Method Summary | |
---|---|
void | copy(Outputter out)
Copy this node to a given outputter |
String | generateId()
Generate id. |
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 |
String | getLocalName()
Get the local name of this node. |
int | getNameCode()
Get the name code of the node, used for finding names in the name pool |
short | getNodeType()
Return the type of node. |
NodeInfo | getParent()
Get the parent node |
String | getPrefix()
Get the prefix part of the name of this node. |
TypeInfo | getSchemaTypeInfo()
The type information associated with this attribute. |
protected long | getSequenceNumber()
Get the node sequence number (in document order). |
String | getStringValue()
Return the character value of the node. |
String | getURI()
Get the URI part of the name of this node. |
boolean | isId()
Returns whether this attribute is known to be of type ID (i.e. to
contain an identifier for its owner element) or not. |
Returns: The display name of this node. For a node with no name, return an empty string.
Returns: The local name of this node. For a node with no name, return an empty string.
Returns: Node.ATTRIBUTE
Returns: the prefix part of the name. For an unnamed node, return null.
Document.normalizeDocument()
, schemaTypeInfo
may not be reliable if the node was moved.
Since: DOM Level 3
Returns: the attribute value
Returns: The URI of the namespace of this node. For the default namespace, return an empty string
ownerElement
of this attribute
can be retrieved using the method Document.getElementById
. The implementation could use several ways to determine if an
attribute node is known to contain an identifier:
Document.normalizeDocument()
, the post-schema-validation
infoset contributions (PSVI contributions) values are used to
determine if this attribute is a schema-determined ID attribute using
the
schema-determined ID definition in [XPointer]
.
Document.normalizeDocument()
, the infoset [type definition] value is used to determine if this attribute is a DTD-determined ID
attribute using the
DTD-determined ID definition in [XPointer]
.
Element.setIdAttribute()
,
Element.setIdAttributeNS()
, or
Element.setIdAttributeNode()
, i.e. it is an
user-determined ID attribute;
Note: XPointer framework (see section 3.2 in [XPointer] ) consider the DOM user-determined ID attribute as being part of the XPointer externally-determined ID definition.
Document.normalizeDocument()
, all user-determined ID
attributes are reset and all attribute nodes ID information are then
reevaluated in accordance to the schema used. As a consequence, if
the Attr.schemaTypeInfo
attribute contains an ID type,
isId
will always return true.
Since: DOM Level 3