]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libjava/org/w3c/dom/NamedNodeMap.java
Imported gcc-4.4.3
[msp430-gcc.git] / libjava / org / w3c / dom / NamedNodeMap.java
diff --git a/libjava/org/w3c/dom/NamedNodeMap.java b/libjava/org/w3c/dom/NamedNodeMap.java
deleted file mode 100644 (file)
index d57ba8d..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-/*\r
- * Copyright (c) 2000 World Wide Web Consortium,\r
- * (Massachusetts Institute of Technology, Institut National de\r
- * Recherche en Informatique et en Automatique, Keio University). All\r
- * Rights Reserved. This program is distributed under the W3C's Software\r
- * Intellectual Property License. This program is distributed in the\r
- * hope that it will be useful, but WITHOUT ANY WARRANTY; without even\r
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\r
- * PURPOSE.\r
- * See W3C License http://www.w3.org/Consortium/Legal/ for more details.\r
- */\r
-\r
-package org.w3c.dom;\r
-\r
-/**\r
- * Objects implementing the <code>NamedNodeMap</code> interface are used to \r
- * represent collections of nodes that can be accessed by name. Note that \r
- * <code>NamedNodeMap</code> does not inherit from <code>NodeList</code>; \r
- * <code>NamedNodeMaps</code> are not maintained in any particular order. \r
- * Objects contained in an object implementing <code>NamedNodeMap</code> may \r
- * also be accessed by an ordinal index, but this is simply to allow \r
- * convenient enumeration of the contents of a <code>NamedNodeMap</code>, \r
- * and does not imply that the DOM specifies an order to these Nodes. \r
- * <p><code>NamedNodeMap</code> objects in the DOM are live.\r
- * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.\r
- */\r
-public interface NamedNodeMap {\r
-    /**\r
-     * Retrieves a node specified by name.\r
-     * @param nameThe <code>nodeName</code> of a node to retrieve.\r
-     * @return A <code>Node</code> (of any type) with the specified \r
-     *   <code>nodeName</code>, or <code>null</code> if it does not identify \r
-     *   any node in this map.\r
-     */\r
-    public Node getNamedItem(String name);\r
-\r
-    /**\r
-     * Adds a node using its <code>nodeName</code> attribute. If a node with \r
-     * that name is already present in this map, it is replaced by the new \r
-     * one.\r
-     * <br>As the <code>nodeName</code> attribute is used to derive the name \r
-     * which the node must be stored under, multiple nodes of certain types \r
-     * (those that have a "special" string value) cannot be stored as the \r
-     * names would clash. This is seen as preferable to allowing nodes to be \r
-     * aliased.\r
-     * @param argA node to store in this map. The node will later be \r
-     *   accessible using the value of its <code>nodeName</code> attribute.\r
-     * @return If the new <code>Node</code> replaces an existing node the \r
-     *   replaced <code>Node</code> is returned, otherwise <code>null</code> \r
-     *   is returned.\r
-     * @exception DOMException\r
-     *   WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a \r
-     *   different document than the one that created this map.\r
-     *   <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.\r
-     *   <br>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an \r
-     *   <code>Attr</code> that is already an attribute of another \r
-     *   <code>Element</code> object. The DOM user must explicitly clone \r
-     *   <code>Attr</code> nodes to re-use them in other elements.\r
-     */\r
-    public Node setNamedItem(Node arg)\r
-                             throws DOMException;\r
-\r
-    /**\r
-     * Removes a node specified by name. When this map contains the attributes \r
-     * attached to an element, if the removed attribute is known to have a \r
-     * default value, an attribute immediately appears containing the \r
-     * default value as well as the corresponding namespace URI, local name, \r
-     * and prefix when applicable.\r
-     * @param nameThe <code>nodeName</code> of the node to remove.\r
-     * @return The node removed from this map if a node with such a name \r
-     *   exists.\r
-     * @exception DOMException\r
-     *   NOT_FOUND_ERR: Raised if there is no node named <code>name</code> in \r
-     *   this map.\r
-     *   <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.\r
-     */\r
-    public Node removeNamedItem(String name)\r
-                                throws DOMException;\r
-\r
-    /**\r
-     * Returns the <code>index</code>th item in the map. If <code>index</code> \r
-     * is greater than or equal to the number of nodes in this map, this \r
-     * returns <code>null</code>.\r
-     * @param indexIndex into this map.\r
-     * @return The node at the <code>index</code>th position in the map, or \r
-     *   <code>null</code> if that is not a valid index.\r
-     */\r
-    public Node item(int index);\r
-\r
-    /**\r
-     * The number of nodes in this map. The range of valid child node indices \r
-     * is <code>0</code> to <code>length-1</code> inclusive. \r
-     */\r
-    public int getLength();\r
-\r
-    /**\r
-     * Retrieves a node specified by local name and namespace URI. HTML-only \r
-     * DOM implementations do not need to implement this method.\r
-     * @param namespaceURIThe namespace URI of the node to retrieve.\r
-     * @param localNameThe local name of the node to retrieve.\r
-     * @return A <code>Node</code> (of any type) with the specified local \r
-     *   name and namespace URI, or <code>null</code> if they do not \r
-     *   identify any node in this map.\r
-     * @since DOM Level 2\r
-     */\r
-    public Node getNamedItemNS(String namespaceURI, \r
-                               String localName);\r
-\r
-    /**\r
-     * Adds a node using its <code>namespaceURI</code> and \r
-     * <code>localName</code>. If a node with that namespace URI and that \r
-     * local name is already present in this map, it is replaced by the new \r
-     * one.\r
-     * <br>HTML-only DOM implementations do not need to implement this method.\r
-     * @param argA node to store in this map. The node will later be \r
-     *   accessible using the value of its <code>namespaceURI</code> and \r
-     *   <code>localName</code> attributes.\r
-     * @return If the new <code>Node</code> replaces an existing node the \r
-     *   replaced <code>Node</code> is returned, otherwise <code>null</code> \r
-     *   is returned.\r
-     * @exception DOMException\r
-     *   WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a \r
-     *   different document than the one that created this map.\r
-     *   <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.\r
-     *   <br>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an \r
-     *   <code>Attr</code> that is already an attribute of another \r
-     *   <code>Element</code> object. The DOM user must explicitly clone \r
-     *   <code>Attr</code> nodes to re-use them in other elements.\r
-     * @since DOM Level 2\r
-     */\r
-    public Node setNamedItemNS(Node arg)\r
-                               throws DOMException;\r
-\r
-    /**\r
-     * Removes a node specified by local name and namespace URI. A removed \r
-     * attribute may be known to have a default value when this map contains \r
-     * the attributes attached to an element, as returned by the attributes \r
-     * attribute of the <code>Node</code> interface. If so, an attribute \r
-     * immediately appears containing the default value as well as the \r
-     * corresponding namespace URI, local name, and prefix when applicable.\r
-     * <br>HTML-only DOM implementations do not need to implement this method.\r
-     * @param namespaceURIThe namespace URI of the node to remove.\r
-     * @param localNameThe local name of the node to remove.\r
-     * @return The node removed from this map if a node with such a local \r
-     *   name and namespace URI exists.\r
-     * @exception DOMException\r
-     *   NOT_FOUND_ERR: Raised if there is no node with the specified \r
-     *   <code>namespaceURI</code> and <code>localName</code> in this map.\r
-     *   <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.\r
-     * @since DOM Level 2\r
-     */\r
-    public Node removeNamedItemNS(String namespaceURI, \r
-                                  String localName)\r
-                                  throws DOMException;\r
-\r
-}\r