KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xerces > internal > impl > xs > opti > DefaultNode


1 /*
2  * The Apache Software License, Version 1.1
3  *
4  *
5  * Copyright (c) 2001, 2002 The Apache Software Foundation. All rights
6  * reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  *
15  * 2. Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in
17  * the documentation and/or other materials provided with the
18  * distribution.
19  *
20  * 3. The end-user documentation included with the redistribution,
21  * if any, must include the following acknowledgment:
22  * "This product includes software developed by the
23  * Apache Software Foundation (http://www.apache.org/)."
24  * Alternately, this acknowledgment may appear in the software itself,
25  * if and wherever such third-party acknowledgments normally appear.
26  *
27  * 4. The names "Xerces" and "Apache Software Foundation" must
28  * not be used to endorse or promote products derived from this
29  * software without prior written permission. For written
30  * permission, please contact apache@apache.org.
31  *
32  * 5. Products derived from this software may not be called "Apache",
33  * nor may "Apache" appear in their name, without prior written
34  * permission of the Apache Software Foundation.
35  *
36  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
37  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
38  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
40  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
42  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
43  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
46  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
47  * SUCH DAMAGE.
48  * ====================================================================
49  *
50  * This software consists of voluntary contributions made by many
51  * individuals on behalf of the Apache Software Foundation and was
52  * originally based on software copyright (c) 2001, International
53  * Business Machines, Inc., http://www.apache.org. For more
54  * information on the Apache Software Foundation, please see
55  * <http://www.apache.org/>.
56  */

57
58 package com.sun.org.apache.xerces.internal.impl.xs.opti;
59
60 import org.w3c.dom.UserDataHandler JavaDoc;
61 import org.w3c.dom.Node JavaDoc;
62 import org.w3c.dom.Document JavaDoc;
63 import org.w3c.dom.NodeList JavaDoc;
64 import org.w3c.dom.NamedNodeMap JavaDoc;
65
66 import org.w3c.dom.DOMException JavaDoc;
67
68
69 /**
70  * @author Rahul Srivastava, Sun Microsystems Inc.
71  *
72  * @version $Id: DefaultNode.java,v 1.6 2003/06/10 18:09:39 elena Exp $
73  */

74 public class DefaultNode implements Node JavaDoc {
75
76     // default constructor
77
public DefaultNode() {
78     }
79     
80     //
81
// org.w3c.dom.Node methods
82
//
83

84     // getter methods
85
public String JavaDoc getNodeName() {
86         return null;
87     }
88
89
90     public String JavaDoc getNodeValue() throws DOMException JavaDoc {
91         return null;
92     }
93
94
95     public short getNodeType() {
96         return -1;
97     }
98
99
100     public Node JavaDoc getParentNode() {
101         return null;
102     }
103
104
105     public NodeList JavaDoc getChildNodes() {
106         return null;
107     }
108
109
110     public Node JavaDoc getFirstChild() {
111         return null;
112     }
113
114
115     public Node JavaDoc getLastChild() {
116         return null;
117     }
118
119
120     public Node JavaDoc getPreviousSibling() {
121         return null;
122     }
123
124
125     public Node JavaDoc getNextSibling() {
126         return null;
127     }
128
129
130     public NamedNodeMap JavaDoc getAttributes() {
131         return null;
132     }
133
134
135     public Document JavaDoc getOwnerDocument() {
136         return null;
137     }
138
139
140     public boolean hasChildNodes() {
141         return false;
142     }
143
144
145     public Node JavaDoc cloneNode(boolean deep) {
146         return null;
147     }
148
149
150     public void normalize() {
151     }
152
153
154     public boolean isSupported(String JavaDoc feature, String JavaDoc version) {
155         return false;
156     }
157
158
159     public String JavaDoc getNamespaceURI() {
160         return null;
161     }
162
163
164     public String JavaDoc getPrefix() {
165         return null;
166     }
167
168
169     public String JavaDoc getLocalName() {
170         return null;
171     }
172     /** DOM Level 3*/
173     public String JavaDoc getBaseURI(){
174         return null;
175     }
176
177
178
179     public boolean hasAttributes() {
180         return false;
181     }
182     
183     // setter methods
184
public void setNodeValue(String JavaDoc nodeValue) throws DOMException JavaDoc {
185         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
186     }
187
188
189     public Node JavaDoc insertBefore(Node JavaDoc newChild, Node JavaDoc refChild) throws DOMException JavaDoc {
190         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
191     }
192
193
194     public Node JavaDoc replaceChild(Node JavaDoc newChild, Node JavaDoc oldChild) throws DOMException JavaDoc {
195         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
196     }
197
198
199     public Node JavaDoc removeChild(Node JavaDoc oldChild) throws DOMException JavaDoc {
200         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
201     }
202
203
204     public Node JavaDoc appendChild(Node JavaDoc newChild) throws DOMException JavaDoc {
205         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
206     }
207
208
209     public void setPrefix(String JavaDoc prefix) throws DOMException JavaDoc {
210         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
211     }
212     
213     public short compareDocumentPosition(Node JavaDoc other){
214         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
215     }
216     
217     public String JavaDoc getTextContent() throws DOMException JavaDoc{
218         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
219     }
220     public void setTextContent(String JavaDoc textContent)throws DOMException JavaDoc{
221         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
222     }
223     public boolean isSameNode(Node JavaDoc other){
224         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
225
226     }
227     public String JavaDoc lookupPrefix(String JavaDoc namespaceURI){
228         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
229                                         }
230     public boolean isDefaultNamespace(String JavaDoc namespaceURI){
231         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
232     }
233     
234     public String JavaDoc lookupNamespaceURI(String JavaDoc prefix){
235         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
236     }
237     
238     public boolean isEqualNode(Node JavaDoc arg){
239        throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
240
241     }
242     
243     public Object JavaDoc getFeature(String JavaDoc feature, String JavaDoc version){
244         return null;
245     }
246     public Object JavaDoc setUserData(String JavaDoc key, Object JavaDoc data, UserDataHandler JavaDoc handler){
247        throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
248     }
249     public Object JavaDoc getUserData(String JavaDoc key){
250         return null;
251     }
252
253
254 }
255     
256
Popular Tags