src/org/w3c/dom/Node.java
Print this page
rev 602 : 8047723: @since tag cleanup in jaxp
Reviewed-by:
*** 297,307 ****
* also the <code>Document</code> object used to create new nodes. When
* this node is a <code>Document</code> or a <code>DocumentType</code>
* which is not used with any <code>Document</code> yet, this is
* <code>null</code>.
*
! * @since DOM Level 2
*/
public Document getOwnerDocument();
/**
* Inserts the node <code>newChild</code> before the existing child node
--- 297,307 ----
* also the <code>Document</code> object used to create new nodes. When
* this node is a <code>Document</code> or a <code>DocumentType</code>
* which is not used with any <code>Document</code> yet, this is
* <code>null</code>.
*
! * @since 1.4, DOM Level 2
*/
public Document getOwnerDocument();
/**
* Inserts the node <code>newChild</code> before the existing child node
*** 333,343 ****
* <br>NOT_SUPPORTED_ERR: if this node is of type <code>Document</code>,
* this exception might be raised if the DOM implementation doesn't
* support the insertion of a <code>DocumentType</code> or
* <code>Element</code> node.
*
! * @since DOM Level 3
*/
public Node insertBefore(Node newChild,
Node refChild)
throws DOMException;
--- 333,343 ----
* <br>NOT_SUPPORTED_ERR: if this node is of type <code>Document</code>,
* this exception might be raised if the DOM implementation doesn't
* support the insertion of a <code>DocumentType</code> or
* <code>Element</code> node.
*
! * @since 1.4, DOM Level 3
*/
public Node insertBefore(Node newChild,
Node refChild)
throws DOMException;
*** 371,381 ****
* <br>NOT_SUPPORTED_ERR: if this node is of type <code>Document</code>,
* this exception might be raised if the DOM implementation doesn't
* support the replacement of the <code>DocumentType</code> child or
* <code>Element</code> child.
*
! * @since DOM Level 3
*/
public Node replaceChild(Node newChild,
Node oldChild)
throws DOMException;
--- 371,381 ----
* <br>NOT_SUPPORTED_ERR: if this node is of type <code>Document</code>,
* this exception might be raised if the DOM implementation doesn't
* support the replacement of the <code>DocumentType</code> child or
* <code>Element</code> child.
*
! * @since 1.4, DOM Level 3
*/
public Node replaceChild(Node newChild,
Node oldChild)
throws DOMException;
*** 391,401 ****
* <br>NOT_SUPPORTED_ERR: if this node is of type <code>Document</code>,
* this exception might be raised if the DOM implementation doesn't
* support the removal of the <code>DocumentType</code> child or the
* <code>Element</code> child.
*
! * @since DOM Level 3
*/
public Node removeChild(Node oldChild)
throws DOMException;
/**
--- 391,401 ----
* <br>NOT_SUPPORTED_ERR: if this node is of type <code>Document</code>,
* this exception might be raised if the DOM implementation doesn't
* support the removal of the <code>DocumentType</code> child or the
* <code>Element</code> child.
*
! * @since 1.4, DOM Level 3
*/
public Node removeChild(Node oldChild)
throws DOMException;
/**
*** 420,430 ****
* <br>NOT_SUPPORTED_ERR: if the <code>newChild</code> node is a child
* of the <code>Document</code> node, this exception might be raised
* if the DOM implementation doesn't support the removal of the
* <code>DocumentType</code> child or <code>Element</code> child.
*
! * @since DOM Level 3
*/
public Node appendChild(Node newChild)
throws DOMException;
/**
--- 420,430 ----
* <br>NOT_SUPPORTED_ERR: if the <code>newChild</code> node is a child
* of the <code>Document</code> node, this exception might be raised
* if the DOM implementation doesn't support the removal of the
* <code>DocumentType</code> child or <code>Element</code> child.
*
! * @since 1.4, DOM Level 3
*/
public Node appendChild(Node newChild)
throws DOMException;
/**
*** 489,499 ****
* <p ><b>Note:</b> In cases where the document contains
* <code>CDATASections</code>, the normalize operation alone may not be
* sufficient, since XPointers do not differentiate between
* <code>Text</code> nodes and <code>CDATASection</code> nodes.
*
! * @since DOM Level 3
*/
public void normalize();
/**
* Tests whether the DOM implementation implements a specific feature and
--- 489,499 ----
* <p ><b>Note:</b> In cases where the document contains
* <code>CDATASections</code>, the normalize operation alone may not be
* sufficient, since XPointers do not differentiate between
* <code>Text</code> nodes and <code>CDATASection</code> nodes.
*
! * @since 1.4, DOM Level 3
*/
public void normalize();
/**
* Tests whether the DOM implementation implements a specific feature and
*** 501,511 ****
* @param feature The name of the feature to test.
* @param version This is the version number of the feature to test.
* @return Returns <code>true</code> if the specified feature is
* supported on this node, <code>false</code> otherwise.
*
! * @since DOM Level 2
*/
public boolean isSupported(String feature,
String version);
/**
--- 501,511 ----
* @param feature The name of the feature to test.
* @param version This is the version number of the feature to test.
* @return Returns <code>true</code> if the specified feature is
* supported on this node, <code>false</code> otherwise.
*
! * @since 1.4, DOM Level 2
*/
public boolean isSupported(String feature,
String version);
/**
*** 521,531 ****
* <p ><b>Note:</b> Per the <em>Namespaces in XML</em> Specification [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
* an attribute does not inherit its namespace from the element it is
* attached to. If an attribute is not explicitly given a namespace, it
* simply has no namespace.
*
! * @since DOM Level 2
*/
public String getNamespaceURI();
/**
* The namespace prefix of this node, or <code>null</code> if it is
--- 521,531 ----
* <p ><b>Note:</b> Per the <em>Namespaces in XML</em> Specification [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
* an attribute does not inherit its namespace from the element it is
* attached to. If an attribute is not explicitly given a namespace, it
* simply has no namespace.
*
! * @since 1.4, DOM Level 2
*/
public String getNamespaceURI();
/**
* The namespace prefix of this node, or <code>null</code> if it is
*** 545,555 ****
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
* method, such as <code>createElement</code> from the
* <code>Document</code> interface, this is always <code>null</code>.
*
! * @since DOM Level 2
*/
public String getPrefix();
/**
* The namespace prefix of this node, or <code>null</code> if it is
* unspecified. When it is defined to be <code>null</code>, setting it
--- 545,555 ----
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
* method, such as <code>createElement</code> from the
* <code>Document</code> interface, this is always <code>null</code>.
*
! * @since 1.4, DOM Level 2
*/
public String getPrefix();
/**
* The namespace prefix of this node, or <code>null</code> if it is
* unspecified. When it is defined to be <code>null</code>, setting it
*** 582,592 ****
* http://www.w3.org/XML/1998/namespace</a>", if this node is an attribute and the specified prefix is "xmlns" and
* the <code>namespaceURI</code> of this node is different from "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>", or if this node is an attribute and the <code>qualifiedName</code> of
* this node is "xmlns" [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
* .
*
! * @since DOM Level 2
*/
public void setPrefix(String prefix)
throws DOMException;
/**
--- 582,592 ----
* http://www.w3.org/XML/1998/namespace</a>", if this node is an attribute and the specified prefix is "xmlns" and
* the <code>namespaceURI</code> of this node is different from "<a href='http://www.w3.org/2000/xmlns/'>http://www.w3.org/2000/xmlns/</a>", or if this node is an attribute and the <code>qualifiedName</code> of
* this node is "xmlns" [<a href='http://www.w3.org/TR/1999/REC-xml-names-19990114/'>XML Namespaces</a>]
* .
*
! * @since 1.4, DOM Level 2
*/
public void setPrefix(String prefix)
throws DOMException;
/**
*** 594,613 ****
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
* method, such as <code>Document.createElement()</code>, this is always
* <code>null</code>.
*
! * @since DOM Level 2
*/
public String getLocalName();
/**
* Returns whether this node (if it is an element) has any attributes.
* @return Returns <code>true</code> if this node has any attributes,
* <code>false</code> otherwise.
*
! * @since DOM Level 2
*/
public boolean hasAttributes();
/**
* The absolute base URI of this node or <code>null</code> if the
--- 594,613 ----
* <br>For nodes of any type other than <code>ELEMENT_NODE</code> and
* <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1
* method, such as <code>Document.createElement()</code>, this is always
* <code>null</code>.
*
! * @since 1.4, DOM Level 2
*/
public String getLocalName();
/**
* Returns whether this node (if it is an element) has any attributes.
* @return Returns <code>true</code> if this node has any attributes,
* <code>false</code> otherwise.
*
! * @since 1.4, DOM Level 2
*/
public boolean hasAttributes();
/**
* The absolute base URI of this node or <code>null</code> if the
*** 617,627 ****
* , the base URI is computed using first the value of the href
* attribute of the HTML BASE element if any, and the value of the
* <code>documentURI</code> attribute from the <code>Document</code>
* interface otherwise.
*
! * @since DOM Level 3
*/
public String getBaseURI();
// DocumentPosition
/**
--- 617,627 ----
* , the base URI is computed using first the value of the href
* attribute of the HTML BASE element if any, and the value of the
* <code>documentURI</code> attribute from the <code>Document</code>
* interface otherwise.
*
! * @since 1.5, DOM Level 3
*/
public String getBaseURI();
// DocumentPosition
/**
*** 664,674 ****
* @exception DOMException
* NOT_SUPPORTED_ERR: when the compared nodes are from different DOM
* implementations that do not coordinate to return consistent
* implementation-specific results.
*
! * @since DOM Level 3
*/
public short compareDocumentPosition(Node other)
throws DOMException;
/**
--- 664,674 ----
* @exception DOMException
* NOT_SUPPORTED_ERR: when the compared nodes are from different DOM
* implementations that do not coordinate to return consistent
* implementation-specific results.
*
! * @since 1.5, DOM Level 3
*/
public short compareDocumentPosition(Node other)
throws DOMException;
/**
*** 715,725 ****
* @exception DOMException
* DOMSTRING_SIZE_ERR: Raised when it would return more characters than
* fit in a <code>DOMString</code> variable on the implementation
* platform.
*
! * @since DOM Level 3
*/
public String getTextContent()
throws DOMException;
/**
* This attribute returns the text content of this node and its
--- 715,725 ----
* @exception DOMException
* DOMSTRING_SIZE_ERR: Raised when it would return more characters than
* fit in a <code>DOMString</code> variable on the implementation
* platform.
*
! * @since 1.5, DOM Level 3
*/
public String getTextContent()
throws DOMException;
/**
* This attribute returns the text content of this node and its
*** 763,773 ****
* </tr>
* </table>
* @exception DOMException
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
*
! * @since DOM Level 3
*/
public void setTextContent(String textContent)
throws DOMException;
/**
--- 763,773 ----
* </tr>
* </table>
* @exception DOMException
* NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
*
! * @since 1.5, DOM Level 3
*/
public void setTextContent(String textContent)
throws DOMException;
/**
*** 781,791 ****
* always has exactly the same effect.
* @param other The node to test against.
* @return Returns <code>true</code> if the nodes are the same,
* <code>false</code> otherwise.
*
! * @since DOM Level 3
*/
public boolean isSameNode(Node other);
/**
* Look up the prefix associated to the given namespace URI, starting from
--- 781,791 ----
* always has exactly the same effect.
* @param other The node to test against.
* @return Returns <code>true</code> if the nodes are the same,
* <code>false</code> otherwise.
*
! * @since 1.5, DOM Level 3
*/
public boolean isSameNode(Node other);
/**
* Look up the prefix associated to the given namespace URI, starting from
*** 796,806 ****
* @return Returns an associated namespace prefix if found or
* <code>null</code> if none is found. If more than one prefix are
* associated to the namespace prefix, the returned namespace prefix
* is implementation dependent.
*
! * @since DOM Level 3
*/
public String lookupPrefix(String namespaceURI);
/**
* This method checks if the specified <code>namespaceURI</code> is the
--- 796,806 ----
* @return Returns an associated namespace prefix if found or
* <code>null</code> if none is found. If more than one prefix are
* associated to the namespace prefix, the returned namespace prefix
* is implementation dependent.
*
! * @since 1.5, DOM Level 3
*/
public String lookupPrefix(String namespaceURI);
/**
* This method checks if the specified <code>namespaceURI</code> is the
*** 808,818 ****
* @param namespaceURI The namespace URI to look for.
* @return Returns <code>true</code> if the specified
* <code>namespaceURI</code> is the default namespace,
* <code>false</code> otherwise.
*
! * @since DOM Level 3
*/
public boolean isDefaultNamespace(String namespaceURI);
/**
* Look up the namespace URI associated to the given prefix, starting from
--- 808,818 ----
* @param namespaceURI The namespace URI to look for.
* @return Returns <code>true</code> if the specified
* <code>namespaceURI</code> is the default namespace,
* <code>false</code> otherwise.
*
! * @since 1.5, DOM Level 3
*/
public boolean isDefaultNamespace(String namespaceURI);
/**
* Look up the namespace URI associated to the given prefix, starting from
*** 822,832 ****
* <code>null</code>, the method will return the default namespace URI
* if any.
* @return Returns the associated namespace URI or <code>null</code> if
* none is found.
*
! * @since DOM Level 3
*/
public String lookupNamespaceURI(String prefix);
/**
* Tests whether two nodes are equal.
--- 822,832 ----
* <code>null</code>, the method will return the default namespace URI
* if any.
* @return Returns the associated namespace URI or <code>null</code> if
* none is found.
*
! * @since 1.5, DOM Level 3
*/
public String lookupNamespaceURI(String prefix);
/**
* Tests whether two nodes are equal.
*** 888,898 ****
* specification are expected to be updated accordingly.
* @param arg The node to compare equality with.
* @return Returns <code>true</code> if the nodes are equal,
* <code>false</code> otherwise.
*
! * @since DOM Level 3
*/
public boolean isEqualNode(Node arg);
/**
* This method returns a specialized object which implements the
--- 888,898 ----
* specification are expected to be updated accordingly.
* @param arg The node to compare equality with.
* @return Returns <code>true</code> if the nodes are equal,
* <code>false</code> otherwise.
*
! * @since 1.5, DOM Level 3
*/
public boolean isEqualNode(Node arg);
/**
* This method returns a specialized object which implements the
*** 913,923 ****
* implements the <code>Node</code> interface, it must delegate to the
* primary core <code>Node</code> and not return results inconsistent
* with the primary core <code>Node</code> such as attributes,
* childNodes, etc.
*
! * @since DOM Level 3
*/
public Object getFeature(String feature,
String version);
/**
--- 913,923 ----
* implements the <code>Node</code> interface, it must delegate to the
* primary core <code>Node</code> and not return results inconsistent
* with the primary core <code>Node</code> such as attributes,
* childNodes, etc.
*
! * @since 1.5, DOM Level 3
*/
public Object getFeature(String feature,
String version);
/**
*** 930,940 ****
* @param handler The handler to associate to that key, or
* <code>null</code>.
* @return Returns the <code>DOMUserData</code> previously associated to
* the given key on this node, or <code>null</code> if there was none.
*
! * @since DOM Level 3
*/
public Object setUserData(String key,
Object data,
UserDataHandler handler);
--- 930,940 ----
* @param handler The handler to associate to that key, or
* <code>null</code>.
* @return Returns the <code>DOMUserData</code> previously associated to
* the given key on this node, or <code>null</code> if there was none.
*
! * @since 1.5, DOM Level 3
*/
public Object setUserData(String key,
Object data,
UserDataHandler handler);
*** 944,953 ****
* <code>setUserData</code> with the same key.
* @param key The key the object is associated to.
* @return Returns the <code>DOMUserData</code> associated to the given
* key on this node, or <code>null</code> if there was none.
*
! * @since DOM Level 3
*/
public Object getUserData(String key);
}
--- 944,953 ----
* <code>setUserData</code> with the same key.
* @param key The key the object is associated to.
* @return Returns the <code>DOMUserData</code> associated to the given
* key on this node, or <code>null</code> if there was none.
*
! * @since 1.5, DOM Level 3
*/
public Object getUserData(String key);
}