2 * @(#)DOMAttrMapImpl.java 1.11 2000/08/16
6 package net.sourceforge.phpdt.tidy.w3c;
8 import org.w3c.dom.DOMException;
14 * (c) 1998-2000 (W3C) MIT, INRIA, Keio University
15 * See Tidy.java for the copyright notice.
16 * Derived from <a href="http://www.w3.org/People/Raggett/tidy">
17 * HTML Tidy Release 4 Aug 2000</a>
19 * @author Dave Raggett <dsr@w3.org>
20 * @author Andy Quick <ac.quick@sympatico.ca> (translation to Java)
21 * @version 1.4, 1999/09/04 DOM support
22 * @version 1.5, 1999/10/23 Tidy Release 27 Sep 1999
23 * @version 1.6, 1999/11/01 Tidy Release 22 Oct 1999
24 * @version 1.7, 1999/12/06 Tidy Release 30 Nov 1999
25 * @version 1.8, 2000/01/22 Tidy Release 13 Jan 2000
26 * @version 1.9, 2000/06/03 Tidy Release 30 Apr 2000
27 * @version 1.10, 2000/07/22 Tidy Release 8 Jul 2000
28 * @version 1.11, 2000/08/16 Tidy Release 4 Aug 2000
31 public class DOMAttrMapImpl implements org.w3c.dom.NamedNodeMap {
33 private AttVal first = null;
35 protected DOMAttrMapImpl(AttVal first)
41 * @see org.w3c.dom.NamedNodeMap#getNamedItem
43 public org.w3c.dom.Node getNamedItem(String name)
45 AttVal att = this.first;
47 if (att.attribute.equals(name)) break;
51 return att.getAdapter();
57 * @see org.w3c.dom.NamedNodeMap#setNamedItem
59 public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node arg)
67 * @see org.w3c.dom.NamedNodeMap#removeNamedItem
69 public org.w3c.dom.Node removeNamedItem(String name)
77 * @see org.w3c.dom.NamedNodeMap#item
79 public org.w3c.dom.Node item(int index)
82 AttVal att = this.first;
84 if (i >= index) break;
89 return att.getAdapter();
95 * @see org.w3c.dom.NamedNodeMap#getLength
97 public int getLength()
100 AttVal att = this.first;
101 while (att != null) {
109 * DOM2 - not implemented.
111 public org.w3c.dom.Node getNamedItemNS(String namespaceURI,
118 * DOM2 - not implemented.
119 * @exception org.w3c.dom.DOMException
121 public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg)
122 throws org.w3c.dom.DOMException
128 * DOM2 - not implemented.
129 * @exception org.w3c.dom.DOMException
131 public org.w3c.dom.Node removeNamedItemNS(String namespaceURI,
133 throws org.w3c.dom.DOMException