|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.icl.saxon.om.AbstractNode
com.icl.saxon.tinytree.TinyNodeImpl
com.icl.saxon.tinytree.TinyAttributeImpl
final class TinyAttributeImpl
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.
| Field Summary |
|---|
| Fields inherited from class com.icl.saxon.tinytree.TinyNodeImpl |
|---|
document, nodeNr, parent |
| Fields inherited from class com.icl.saxon.om.AbstractNode |
|---|
NODE_LETTER |
| Fields inherited from interface org.w3c.dom.Node |
|---|
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 |
| Fields inherited from interface com.icl.saxon.om.NodeInfo |
|---|
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, NODE, NONE, NUMBER_OF_TYPES, PI, ROOT, TEXT |
| Constructor Summary | |
|---|---|
TinyAttributeImpl(TinyDocumentImpl doc,
int nodeNr)
|
|
| Method Summary | |
|---|---|
void |
copy(Outputter out)
Copy this node to a given outputter |
java.lang.String |
generateId()
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 |
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 |
java.lang.String |
getPrefix()
Get the prefix part of the name of this node. |
org.w3c.dom.TypeInfo |
getSchemaTypeInfo()
The type information associated with this attribute. |
protected long |
getSequenceNumber()
Get the node sequence number (in document order). |
java.lang.String |
getStringValue()
Return the character value of the node. |
java.lang.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. |
| Methods inherited from class com.icl.saxon.tinytree.TinyNodeImpl |
|---|
compareOrder, getAttributeValue, getAttributeValue, getBaseURI, getDocumentRoot, getEnumeration, getOriginatingNode, getSystemId, hasAttributes, hasChildNodes, isSameNodeInfo, outputNamespaceNodes, setLineNumber, setParentNode, setSystemId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Attr |
|---|
getName, getOwnerElement, getSpecified, getValue, setValue |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Constructor Detail |
|---|
public TinyAttributeImpl(TinyDocumentImpl doc,
int nodeNr)
| Method Detail |
|---|
public NodeInfo getParent()
getParent in interface NodeInfogetParent in class TinyNodeImplprotected long getSequenceNumber()
getSequenceNumber in class TinyNodeImplpublic final short getNodeType()
getNodeType in interface NodeInfogetNodeType in interface org.w3c.dom.Nodepublic java.lang.String getStringValue()
getStringValue in interface NodeInfopublic 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 interface org.w3c.dom.NodegetPrefix in class TinyNodeImplpublic java.lang.String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class TinyNodeImplpublic java.lang.String getLocalName()
getLocalName in interface NodeInfogetLocalName in interface org.w3c.dom.NodegetLocalName in class TinyNodeImplpublic final java.lang.String getURI()
getURI in interface NodeInfogetURI in class TinyNodeImplpublic java.lang.String generateId()
generateId in interface NodeInfogenerateId in class TinyNodeImpl
public void copy(Outputter out)
throws javax.xml.transform.TransformerException
copy in interface NodeInfojavax.xml.transform.TransformerExceptionpublic int getLineNumber()
getLineNumber in interface NodeInfogetLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in class TinyNodeImplpublic org.w3c.dom.TypeInfo getSchemaTypeInfo()
Document.normalizeDocument(), schemaTypeInfo
may not be reliable if the node was moved.
getSchemaTypeInfo in interface org.w3c.dom.AttrgetSchemaTypeInfo in class AbstractNodepublic boolean isId()
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.
isId in interface org.w3c.dom.AttrisId in class AbstractNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||