Class NodeImpl
- All Implemented Interfaces:
Cloneable, EventTarget, Node, NodeList
The Node interface provides shared behaviors such as siblings and children, both for consistancy and so that the most common tree operations may be performed without constantly having to downcast to specific node types. When there is no obvious mapping for one of these queries, it will respond with null. Note that the default behavior is that children are forbidden. To permit them, the subclass ParentNode overrides several methods.
NodeImpl also implements NodeList, so it can return itself in response to the getChildNodes() query. This eliminiates the need for a separate ChildNodeList object. Note that this is an IMPLEMENTATION DETAIL; applications should _never_ assume that this identity exists.
All nodes in a single document must originate in that document. (Note that this is much tighter than "must be same implementation") Nodes are all aware of their ownerDocument, and attempts to mismatch will throw WRONG_DOCUMENT_ERR.
However, to save memory not all nodes always have a direct reference to their ownerDocument. When a node is owned by another node it relies on its owner to store its ownerDocument. Parent nodes always store it though, so there is never more than one level of indirection. And when a node doesn't have an owner, ownerNode refers to its ownerDocument.
This class doesn't directly support mutation events, however, it still implements the EventTarget interface and forward all related calls to the document so that the document class do so.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortprotected static final intprivate intprotected static final intprotected static final intprotected static final intprotected static final intprotected NodeImplprotected static final intprotected static final intprotected static final intFields inherited from interface Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNodeImpl(CoreDocumentImpl ownerDocument) No public constructor; only subclasses of Node should be instantiated, and those normally via a Document's factory methods -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(String type, EventListener listener, boolean useCapture) appendChild(Node newChild) Adds a child node to the end of the list of children for this node.protected voidchanged()Denotes that this node has changed.protected intchanges()cloneNode(boolean deep) Returns a duplicate of a given node.shortcompareDocumentPosition(Node other) Compares a node with this node with regard to their position in the document.booleandispatchEvent(Event event) Return the collection of attributes associated with this node, or null if none.The absolute base URI of this node ornullif undefined.Obtain a NodeList enumerating all children of this node.(package private) NodegetElementAncestor(Node currentNode) getFeature(String feature, String version) The first child of this Node, or null if none.The first child of this Node, or null if none.intNodeList method: Count the immediate children of this nodeIntroduced in DOM Level 2.Introduced in DOM Level 2.The next child of this node's parent, or null if noneabstract Stringthe name of this node.protected intabstract shortA short integer indicating what type of node this is.Returns the node value.Find the Document that this Node belongs to (the document in whose context the Node was created).Obtain the DOM-tree parent of this node, or null if it is not currently active in the DOM tree (perhaps because it has just been created or removed).Introduced in DOM Level 2.The previous child of this node's parent, or null if noneThis attribute returns the text content of this node and its descendants.(package private) voidgetTextContent(StringBuilder builder) getUserData(String key) Retrieves the object associated to a key on a this node.booleanReturns whether this node (if it is an element) has any attributes.booleanTest whether this node has any children.(package private) final boolean(package private) final voidhasStringValue(boolean value) insertBefore(Node newChild, Node refChild) Move one or more node(s) to our list of children.booleanisDefaultNamespace(String namespaceURI) DOM Level 3: Experimental This method checks if the specifiednamespaceURIis the default namespace or not.booleanisEqualNode(Node arg) Tests whether two nodes are equal.(package private) final boolean(package private) final voidisFirstChild(boolean value) (package private) final boolean(package private) final voidisIdAttribute(boolean value) (package private) final boolean(package private) final voidisNormalized(boolean value) (package private) final booleanisOwned()(package private) final voidisOwned(boolean value) booleanisSameNode(Node other) Returns whether this node is the same node as the given one.(package private) final boolean(package private) final voidisSpecified(boolean value) booleanisSupported(String feature, String version) Introduced in DOM Level 2.item(int index) NodeList method: Return the Nth immediate child of this node, or null if the index is out of bounds.(package private) StringlookupNamespacePrefix(String namespaceURI, ElementImpl el) lookupNamespaceURI(String specifiedPrefix) DOM Level 3 - Experimental: Look up the namespace URI associated to the given prefix, starting from this node.lookupPrefix(String namespaceURI) DOM Level 3 - Experimental: Look up the prefix associated to the given namespace URI, starting from this node.(package private) final booleanfinal voidneedsSyncChildren(boolean value) voidPuts allTextnodes in the full depth of the sub-tree underneath thisNode, including attribute nodes, into a "normal" form where only markup (e.g., tags, comments, processing instructions, CDATA sections, and entity references) separatesTextnodes, i.e., there are no adjacentTextnodes.(package private) CoreDocumentImplsame as above but returns internal type and this one is not overridden by CoreDocumentImpl to return null(package private) NodeImpl(package private) ChildNoderemoveChild(Node oldChild) Remove a child from this Node.voidremoveEventListener(String type, EventListener listener, boolean useCapture) replaceChild(Node newChild, Node oldChild) Make newChild occupy the location that oldChild used to have.voidSets the node value.protected voidvoidIntroduced in DOM Level 2.voidsetTextContent(String textContent) This attribute returns the text content of this node and its descendants.setUserData(String key, Object data, UserDataHandler handler) Associate an object to a key on this node.toString()
-
Field Details
-
DOCUMENT_POSITION_DISCONNECTED
public static final short DOCUMENT_POSITION_DISCONNECTED- See Also:
-
DOCUMENT_POSITION_PRECEDING
public static final short DOCUMENT_POSITION_PRECEDING- See Also:
-
DOCUMENT_POSITION_FOLLOWING
public static final short DOCUMENT_POSITION_FOLLOWING- See Also:
-
DOCUMENT_POSITION_CONTAINS
public static final short DOCUMENT_POSITION_CONTAINS- See Also:
-
DOCUMENT_POSITION_IS_CONTAINED
public static final short DOCUMENT_POSITION_IS_CONTAINED- See Also:
-
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
public static final short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC- See Also:
-
ownerNode_
-
flags_
private int flags_ -
READONLY
protected static final int READONLY- See Also:
-
SYNCCHILDREN
protected static final int SYNCCHILDREN- See Also:
-
OWNED
protected static final int OWNED- See Also:
-
FIRSTCHILD
protected static final int FIRSTCHILD- See Also:
-
SPECIFIED
protected static final int SPECIFIED- See Also:
-
HASSTRING
protected static final int HASSTRING- See Also:
-
NORMALIZED
protected static final int NORMALIZED- See Also:
-
ID
protected static final int ID- See Also:
-
-
Constructor Details
-
NodeImpl
No public constructor; only subclasses of Node should be instantiated, and those normally via a Document's factory methodsEvery Node knows what Document it belongs to.
- Parameters:
ownerDocument- the owner document
-
-
Method Details
-
getNodeType
public abstract short getNodeType()A short integer indicating what type of node this is. The named constants for this value are defined in the org.w3c.dom.Node interface.- Specified by:
getNodeTypein interfaceNode
-
getNodeName
the name of this node.- Specified by:
getNodeNamein interfaceNode
-
getNodeValue
Returns the node value.- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException- DOMSTRING_SIZE_ERR
-
setNodeValue
Sets the node value.- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR
-
appendChild
Adds a child node to the end of the list of children for this node. Convenience shorthand for insertBefore(newChild,null).- Specified by:
appendChildin interfaceNode- Returns:
- newChild, in its new state (relocated, or emptied in the case of DocumentNode.)
- Throws:
DOMException- HIERARCHY_REQUEST_ERR if newChild is of a type that shouldn't be a child of this node.DOMException- WRONG_DOCUMENT_ERR if newChild has a different owner document than we do.DOMException- NO_MODIFICATION_ALLOWED_ERR if this node is read-only.- See Also:
-
cloneNode
Returns a duplicate of a given node. You can consider this a generic "copy constructor" for nodes. The newly returned object should be completely independent of the source object's subtree, so changes in one after the clone has been made will not affect the other.Note: since we never have any children deep is meaningless here, ParentNode overrides this behavior.
-
getOwnerDocument
Find the Document that this Node belongs to (the document in whose context the Node was created). The Node may or may not currently be part of that Document's actual contents.- Specified by:
getOwnerDocumentin interfaceNode
-
ownerDocument
CoreDocumentImpl ownerDocument()same as above but returns internal type and this one is not overridden by CoreDocumentImpl to return null -
setOwnerDocument
-
getNodeNumber
protected int getNodeNumber()- Returns:
- the node number
-
getParentNode
Obtain the DOM-tree parent of this node, or null if it is not currently active in the DOM tree (perhaps because it has just been created or removed). Note that Document, DocumentFragment, and Attribute will never have parents.- Specified by:
getParentNodein interfaceNode
-
parentNode
NodeImpl parentNode() -
getNextSibling
The next child of this node's parent, or null if none- Specified by:
getNextSiblingin interfaceNode
-
getPreviousSibling
The previous child of this node's parent, or null if none- Specified by:
getPreviousSiblingin interfaceNode
-
previousSibling
ChildNode previousSibling() -
getAttributes
Return the collection of attributes associated with this node, or null if none. At this writing, Element is the only type of node which will ever have attributes.- Specified by:
getAttributesin interfaceNode- See Also:
-
hasAttributes
public boolean hasAttributes()Returns whether this node (if it is an element) has any attributes.- Specified by:
hasAttributesin interfaceNode- Returns:
trueif this node has any attributes,falseotherwise.- See Also:
-
hasChildNodes
public boolean hasChildNodes()Test whether this node has any children. Convenience shorthand for (Node.getFirstChild()!=null)By default we do not have any children, ParentNode overrides this.
- Specified by:
hasChildNodesin interfaceNode- See Also:
-
getChildNodes
Obtain a NodeList enumerating all children of this node. If there are none, an (initially) empty NodeList is returned.NodeLists are "live"; as children are added/removed the NodeList will immediately reflect those changes. Also, the NodeList refers to the actual nodes, so changes to those nodes made via the DOM tree will be reflected in the NodeList and vice versa.
In this implementation, Nodes implement the NodeList interface and provide their own getChildNodes() support. Other DOMs may solve this differently.
- Specified by:
getChildNodesin interfaceNode
-
getFirstChild
The first child of this Node, or null if none.By default we do not have any children, ParentNode overrides this.
- Specified by:
getFirstChildin interfaceNode- See Also:
-
getLastChild
The first child of this Node, or null if none.By default we do not have any children, ParentNode overrides this.
- Specified by:
getLastChildin interfaceNode- See Also:
-
insertBefore
Move one or more node(s) to our list of children. Note that this implicitly removes them from their previous parent.By default we do not accept any children, ParentNode overrides this.
- Specified by:
insertBeforein interfaceNode- Parameters:
newChild- The Node to be moved to our subtree. As a convenience feature, inserting a DocumentNode will instead insert all its children.refChild- Current child which newChild should be placed immediately before. If refChild is null, the insertion occurs after all existing Nodes, like appendChild().- Returns:
- newChild, in its new state (relocated, or emptied in the case of DocumentNode.)
- Throws:
DOMException- HIERARCHY_REQUEST_ERR if newChild is of a type that shouldn't be a child of this node, or if newChild is an ancestor of this node.DOMException- WRONG_DOCUMENT_ERR if newChild has a different owner document than we do.DOMException- NOT_FOUND_ERR if refChild is not a child of this node.DOMException- NO_MODIFICATION_ALLOWED_ERR if this node is read-only.- See Also:
-
removeChild
Remove a child from this Node. The removed child's subtree remains intact so it may be re-inserted elsewhere.By default we do not have any children, ParentNode overrides this.
- Specified by:
removeChildin interfaceNode- Returns:
- oldChild, in its new state (removed).
- Throws:
DOMException- NOT_FOUND_ERR if oldChild is not a child of this node.DOMException- NO_MODIFICATION_ALLOWED_ERR if this node is read-only.- See Also:
-
replaceChild
Make newChild occupy the location that oldChild used to have. Note that newChild will first be removed from its previous parent, if any. Equivalent to inserting newChild before oldChild, then removing oldChild.By default we do not have any children, ParentNode overrides this.
- Specified by:
replaceChildin interfaceNode- Returns:
- oldChild, in its new state (removed).
- Throws:
DOMException- HIERARCHY_REQUEST_ERR if newChild is of a type that shouldn't be a child of this node, or if newChild is one of our ancestors.DOMException- WRONG_DOCUMENT_ERR if newChild has a different owner document than we do.DOMException- NOT_FOUND_ERR if oldChild is not a child of this node.DOMException- NO_MODIFICATION_ALLOWED_ERR if this node is read-only.- See Also:
-
getLength
-
item
-
normalize
public void normalize()Puts allTextnodes in the full depth of the sub-tree underneath thisNode, including attribute nodes, into a "normal" form where only markup (e.g., tags, comments, processing instructions, CDATA sections, and entity references) separatesTextnodes, i.e., there are no adjacentTextnodes. This can be used to ensure that the DOM view of a document is the same as if it were saved and re-loaded, and is useful when operations (such as XPointer lookups) that depend on a particular document tree structure are to be used.In cases where the document containsCDATASections, the normalize operation alone may not be sufficient, since XPointers do not differentiate betweenTextnodes andCDATASectionnodes.Note that this implementation simply calls normalize() on this Node's children. It is up to implementors or Node to override normalize() to take action.
-
isSupported
Introduced in DOM Level 2.Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.
- Specified by:
isSupportedin interfaceNode- Parameters:
feature- The package name of the feature to test. This is the same name as what can be passed to the method hasFeature on DOMImplementation.version- This is the version number of the package name to test. In Level 2, version 1, this is the string "2.0". If the version is not specified, supporting any version of the feature will cause the method to return true.- Returns:
- boolean Returns true if this node defines a subtree within which the specified feature is supported, false otherwise.
-
getNamespaceURI
Introduced in DOM Level 2.The namespace URI of this node, or null if it is unspecified. When this node is of any type other than ELEMENT_NODE and ATTRIBUTE_NODE, this is always null and setting it has no effect.
This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time.
For nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is null.
- Specified by:
getNamespaceURIin interfaceNode- See Also:
-
getPrefix
Introduced in DOM Level 2.The namespace prefix of this node, or null if it is unspecified. When this node is of any type other than ELEMENT_NODE and ATTRIBUTE_NODE this is always null and setting it has no effect.
For nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is null.
-
setPrefix
Introduced in DOM Level 2.The namespace prefix of this node, or null if it is unspecified. When this node is of any type other than ELEMENT_NODE and ATTRIBUTE_NODE this is always null and setting it has no effect.
For nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is null.
Note that setting this attribute changes the nodeName attribute, which holds the qualified name, as well as the tagName and name attributes of the Element and Attr interfaces, when applicable.
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException- INVALID_CHARACTER_ERR Raised if the specified prefix contains an invalid character.- See Also:
-
getLocalName
Introduced in DOM Level 2.Returns the local part of the qualified name of this node. For nodes created with a DOM Level 1 method, such as createElement from the Document interface, and for nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE this is the same as the nodeName attribute.
- Specified by:
getLocalNamein interfaceNode- See Also:
-
addEventListener
- Specified by:
addEventListenerin interfaceEventTarget
-
removeEventListener
- Specified by:
removeEventListenerin interfaceEventTarget
-
dispatchEvent
- Specified by:
dispatchEventin interfaceEventTarget
-
getBaseURI
The absolute base URI of this node ornullif undefined. This value is computed according to . However, when theDocumentsupports the feature "HTML" , the base URI is computed using first the value of the href attribute of the HTML BASE element if any, and the value of thedocumentURIattribute from theDocumentinterface otherwise.
When the node is anElement, aDocumentor a aProcessingInstruction, this attribute represents the properties [base URI] defined in . When the node is aNotation, anEntity, or anEntityReference, this attribute represents the properties [declaration base URI] in the . How will this be affected by resolution of relative namespace URIs issue?It's not.Should this only be on Document, Element, ProcessingInstruction, Entity, and Notation nodes, according to the infoset? If not, what is it equal to on other nodes? Null? An empty string? I think it should be the parent's.No.Should this be read-only and computed or and actual read-write attribute?Read-only and computed (F2F 19 Jun 2000 and teleconference 30 May 2001).If the base HTML element is not yet attached to a document, does the insert change the Document.baseURI? Yes. (F2F 26 Sep 2001)- Specified by:
getBaseURIin interfaceNode
-
compareDocumentPosition
Compares a node with this node with regard to their position in the document.- Specified by:
compareDocumentPositionin interfaceNode- Parameters:
other- The node to compare against this node.- Returns:
- Returns how the given node is positioned relatively to this node.
- Throws:
DOMException
-
getTextContent
This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. When set, any possible children this node may have are removed and replaced by a singleTextnode containing the string this attribute is set to. On getting, no serialization is performed, the returned string does not contain any markup. No whitespace normalization is performed, the returned string does not contain the element content whitespaces . Similarly, on setting, no parsing is performed either, the input string is taken as pure textual content.
The string returned is made of the text content of this node depending on its type, as defined below:Node type Content ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, DOCUMENT_FRAGMENT_NODE concatenation of the textContentattribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodesATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE nodeValueDOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE null - Specified by:
getTextContentin interfaceNode- Throws:
DOMException- DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in aDOMStringvariable on the implementation platform.
-
getTextContent
- Throws:
DOMException
-
setTextContent
This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. When set, any possible children this node may have are removed and replaced by a singleTextnode containing the string this attribute is set to. On getting, no serialization is performed, the returned string does not contain any markup. No whitespace normalization is performed, the returned string does not contain the element content whitespaces . Similarly, on setting, no parsing is performed either, the input string is taken as pure textual content.
The string returned is made of the text content of this node depending on its type, as defined below:Node type Content ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, DOCUMENT_FRAGMENT_NODE concatenation of the textContentattribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodesATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE nodeValueDOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE null - Specified by:
setTextContentin interfaceNode- Throws:
DOMException- DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in aDOMStringvariable on the implementation platform.
-
isSameNode
Returns whether this node is the same node as the given one.
This method provides a way to determine whether twoNodereferences returned by the implementation reference the same object. When twoNodereferences are references to the same object, even if through a proxy, the references may be used completely interchangably, such that all attributes have the same values and calling the same DOM method on either reference always has exactly the same effect.- Specified by:
isSameNodein interfaceNode- Parameters:
other- The node to test against.- Returns:
- Returns
trueif the nodes are the same,falseotherwise.
-
isDefaultNamespace
DOM Level 3: Experimental This method checks if the specifiednamespaceURIis the default namespace or not.- Specified by:
isDefaultNamespacein interfaceNode- Parameters:
namespaceURI- The namespace URI to look for.- Returns:
trueif the specifiednamespaceURIis the default namespace,falseotherwise.
-
lookupPrefix
DOM Level 3 - Experimental: Look up the prefix associated to the given namespace URI, starting from this node.- Specified by:
lookupPrefixin interfaceNode- Parameters:
namespaceURI- the namespace uri- Returns:
- the prefix for the namespace
-
lookupNamespaceURI
DOM Level 3 - Experimental: Look up the namespace URI associated to the given prefix, starting from this node. Use lookupNamespaceURI(null) to lookup the default namespace- Specified by:
lookupNamespaceURIin interfaceNode
-
getElementAncestor
-
lookupNamespacePrefix
-
isEqualNode
Tests whether two nodes are equal.
This method tests for equality of nodes, not sameness (i.e., whether the two nodes are references to the same object) which can be tested withNode.isSameNode. All nodes that are the same will also be equal, though the reverse may not be true.
Two nodes are equal if and only if the following conditions are satisfied: The two nodes are of the same type.The following string attributes are equal:nodeName,localName,namespaceURI,prefix,nodeValue,baseURI. This is: they are bothnull, or they have the same length and are character for character identical. TheattributesNamedNodeMapsare equal. This is: they are bothnull, or they have the same length and for each node that exists in one map there is a node that exists in the other map and is equal, although not necessarily at the same index.ThechildNodesNodeListsare equal. This is: they are bothnull, or they have the same length and contain equal nodes at the same index. This is true forAttrnodes as for any other type of node. Note that normalization can affect equality; to avoid this, nodes should be normalized before being compared.
For twoDocumentTypenodes to be equal, the following conditions must also be satisfied: The following string attributes are equal:publicId,systemId,internalSubset.TheentitiesNamedNodeMapsare equal.ThenotationsNamedNodeMapsare equal.
On the other hand, the following do not affect equality: theownerDocumentattribute, thespecifiedattribute forAttrnodes, theisWhitespaceInElementContentattribute forTextnodes, as well as any user data or event listeners registered on the nodes.- Specified by:
isEqualNodein interfaceNode- Parameters:
arg- The node to compare equality with.- Returns:
- If the nodes, and possibly subtrees are equal,
trueotherwisefalse.
-
getFeature
- Specified by:
getFeaturein interfaceNode
-
setUserData
Associate an object to a key on this node. The object can later be retrieved from this node by callinggetUserDatawith the same key.- Specified by:
setUserDatain interfaceNode- Parameters:
key- The key to associate the object to.data- The object to associate to the given key, ornullto remove any existing association to that key.handler- The handler to associate to that key, ornull.- Returns:
- Returns the
DOMObjectpreviously associated to the given key on this node, ornullif there was none.
-
getUserData
Retrieves the object associated to a key on a this node. The object must first have been set to this node by callingsetUserDatawith the same key.- Specified by:
getUserDatain interfaceNode- Parameters:
key- The key the object is associated to.- Returns:
- Returns the
DOMObjectassociated to the given key on this node, ornullif there was none.
-
changed
protected void changed()Denotes that this node has changed. -
changes
protected int changes()- Returns:
- the number of changes to this node.
-
needsSyncChildren
final boolean needsSyncChildren() -
needsSyncChildren
public final void needsSyncChildren(boolean value) -
isOwned
final boolean isOwned() -
isOwned
final void isOwned(boolean value) -
isFirstChild
final boolean isFirstChild() -
isFirstChild
final void isFirstChild(boolean value) -
isSpecified
final boolean isSpecified() -
isSpecified
final void isSpecified(boolean value) -
hasStringValue
final boolean hasStringValue() -
hasStringValue
final void hasStringValue(boolean value) -
isNormalized
final boolean isNormalized() -
isNormalized
final void isNormalized(boolean value) -
isIdAttribute
final boolean isIdAttribute() -
isIdAttribute
final void isIdAttribute(boolean value) -
toString
-