KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > caucho > quercus > lib > dom > DOMNamedNodeMap


1 /*
2  * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved
3  *
4  * This file is part of Resin(R) Open Source
5  *
6  * Each copy or derived work must preserve the copyright notice and this
7  * notice unmodified.
8  *
9  * Resin Open Source is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * Resin Open Source is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
17  * of NON-INFRINGEMENT. See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Resin Open Source; if not, write to the
22  *
23  * Free Software Foundation, Inc.
24  * 59 Temple Place, Suite 330
25  * Boston, MA 02111-1307 USA
26  *
27  * @author Sam
28  */

29
30 package com.caucho.quercus.lib.dom;
31
32 import org.w3c.dom.NamedNodeMap JavaDoc;
33
34 public class DOMNamedNodeMap
35   extends DOMWrapper<NamedNodeMap JavaDoc>
36 {
37   DOMNamedNodeMap(DOMImplementation impl, NamedNodeMap JavaDoc delegate)
38   {
39     super(impl, delegate);
40   }
41
42   public int getLength()
43   {
44     return _delegate.getLength();
45   }
46
47   public DOMNode getNamedItem(String JavaDoc name)
48   {
49     return wrap(_delegate.getNamedItem(name));
50   }
51
52   public DOMNode getNamedItemNS(String JavaDoc namespaceURI, String JavaDoc localName)
53     throws DOMException
54   {
55     try {
56       return wrap(_delegate.getNamedItemNS(namespaceURI, localName));
57     }
58     catch (org.w3c.dom.DOMException JavaDoc ex) {
59       throw wrap(ex);
60     }
61   }
62
63   public DOMNode item(int index)
64   {
65     return wrap(_delegate.item(index));
66   }
67
68   public DOMNode removeNamedItem(String JavaDoc name)
69     throws DOMException
70   {
71     try {
72       return wrap(_delegate.removeNamedItem(name));
73     }
74     catch (org.w3c.dom.DOMException JavaDoc ex) {
75       throw wrap(ex);
76     }
77   }
78
79   public DOMNode removeNamedItemNS(String JavaDoc namespaceURI, String JavaDoc localName)
80     throws DOMException
81   {
82     try {
83       return wrap(_delegate.removeNamedItemNS(namespaceURI, localName));
84     }
85     catch (org.w3c.dom.DOMException JavaDoc ex) {
86       throw wrap(ex);
87     }
88   }
89
90   public DOMNode setNamedItem(DOMNode arg)
91     throws DOMException
92   {
93     try {
94       return wrap(_delegate.setNamedItem(arg.getDelegate()));
95     }
96     catch (org.w3c.dom.DOMException JavaDoc ex) {
97       throw wrap(ex);
98     }
99   }
100
101   public DOMNode setNamedItemNS(DOMNode arg)
102     throws DOMException
103   {
104     try {
105       return wrap(_delegate.setNamedItemNS(arg.getDelegate()));
106     }
107     catch (org.w3c.dom.DOMException JavaDoc ex) {
108       throw wrap(ex);
109     }
110   }
111 }
112
Popular Tags