1 19 20 package org.netbeans.tax.dom; 21 22 import org.w3c.dom.*; 23 import org.netbeans.tax.*; 24 25 29 class NamedNodeMapImpl implements NamedNodeMap { 30 31 private final TreeNamedObjectMap peer; 32 33 34 public NamedNodeMapImpl(TreeNamedObjectMap peer) { 35 this.peer = peer; 36 } 37 38 42 public int getLength() { 43 return peer.size(); 44 } 45 46 53 public Node getNamedItem(String name) { 54 return Wrapper.wrap((TreeObject)peer.get(name)); 55 } 56 57 70 public Node getNamedItemNS(String namespaceURI, String localName) { 71 throw new UOException(); 72 } 73 74 82 public Node item(int index) { 83 return Wrapper.wrap((TreeObject)peer.get(index)); 84 } 85 86 100 public Node removeNamedItem(String name) throws DOMException { 101 throw new ROException(); 102 } 103 104 125 public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException { 126 throw new ROException(); 127 } 128 129 157 public Node setNamedItem(Node arg) throws DOMException { 158 throw new ROException(); 159 } 160 161 190 public Node setNamedItemNS(Node arg) throws DOMException { 191 throw new ROException(); 192 } 193 194 } 195 | Popular Tags |