KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright 2001, 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.impl.xs.opti;
18
19 import org.w3c.dom.UserDataHandler JavaDoc;
20 import org.w3c.dom.Node JavaDoc;
21 import org.w3c.dom.Document JavaDoc;
22 import org.w3c.dom.NodeList JavaDoc;
23 import org.w3c.dom.NamedNodeMap JavaDoc;
24
25 import org.w3c.dom.DOMException JavaDoc;
26
27
28 /**
29  * @xerces.internal
30  *
31  * @author Rahul Srivastava, Sun Microsystems Inc.
32  *
33  * @version $Id: DefaultNode.java,v 1.9 2005/05/02 22:00:52 mrglavas Exp $
34  */

35 public class DefaultNode implements Node JavaDoc {
36
37     // default constructor
38
public DefaultNode() {
39     }
40     
41     //
42
// org.w3c.dom.Node methods
43
//
44

45     // getter methods
46
public String JavaDoc getNodeName() {
47         return null;
48     }
49
50
51     public String JavaDoc getNodeValue() throws DOMException JavaDoc {
52         return null;
53     }
54
55
56     public short getNodeType() {
57         return -1;
58     }
59
60
61     public Node JavaDoc getParentNode() {
62         return null;
63     }
64
65
66     public NodeList JavaDoc getChildNodes() {
67         return null;
68     }
69
70
71     public Node JavaDoc getFirstChild() {
72         return null;
73     }
74
75
76     public Node JavaDoc getLastChild() {
77         return null;
78     }
79
80
81     public Node JavaDoc getPreviousSibling() {
82         return null;
83     }
84
85
86     public Node JavaDoc getNextSibling() {
87         return null;
88     }
89
90
91     public NamedNodeMap JavaDoc getAttributes() {
92         return null;
93     }
94
95
96     public Document JavaDoc getOwnerDocument() {
97         return null;
98     }
99
100
101     public boolean hasChildNodes() {
102         return false;
103     }
104
105
106     public Node JavaDoc cloneNode(boolean deep) {
107         return null;
108     }
109
110
111     public void normalize() {
112     }
113
114
115     public boolean isSupported(String JavaDoc feature, String JavaDoc version) {
116         return false;
117     }
118
119
120     public String JavaDoc getNamespaceURI() {
121         return null;
122     }
123
124
125     public String JavaDoc getPrefix() {
126         return null;
127     }
128
129
130     public String JavaDoc getLocalName() {
131         return null;
132     }
133     /** DOM Level 3*/
134     public String JavaDoc getBaseURI(){
135         return null;
136     }
137
138
139
140     public boolean hasAttributes() {
141         return false;
142     }
143     
144     // setter methods
145
public void setNodeValue(String JavaDoc nodeValue) throws DOMException JavaDoc {
146         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
147     }
148
149
150     public Node JavaDoc insertBefore(Node JavaDoc newChild, Node JavaDoc refChild) throws DOMException JavaDoc {
151         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
152     }
153
154
155     public Node JavaDoc replaceChild(Node JavaDoc newChild, Node JavaDoc oldChild) throws DOMException JavaDoc {
156         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
157     }
158
159
160     public Node JavaDoc removeChild(Node JavaDoc oldChild) throws DOMException JavaDoc {
161         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
162     }
163
164
165     public Node JavaDoc appendChild(Node JavaDoc newChild) throws DOMException JavaDoc {
166         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
167     }
168
169
170     public void setPrefix(String JavaDoc prefix) throws DOMException JavaDoc {
171         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
172     }
173     
174     public short compareDocumentPosition(Node JavaDoc other){
175         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
176     }
177     
178     public String JavaDoc getTextContent() throws DOMException JavaDoc{
179         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
180     }
181     public void setTextContent(String JavaDoc textContent)throws DOMException JavaDoc{
182         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
183     }
184     public boolean isSameNode(Node JavaDoc other){
185         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
186
187     }
188     public String JavaDoc lookupPrefix(String JavaDoc namespaceURI){
189         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
190                                         }
191     public boolean isDefaultNamespace(String JavaDoc namespaceURI){
192         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
193     }
194     
195     public String JavaDoc lookupNamespaceURI(String JavaDoc prefix){
196         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
197     }
198     
199     public boolean isEqualNode(Node JavaDoc arg){
200        throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
201
202     }
203     
204     public Object JavaDoc getFeature(String JavaDoc feature, String JavaDoc version){
205         return null;
206     }
207     public Object JavaDoc setUserData(String JavaDoc key, Object JavaDoc data, UserDataHandler JavaDoc handler){
208        throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
209     }
210     public Object JavaDoc getUserData(String JavaDoc key){
211         return null;
212     }
213
214
215 }
216     
217
Popular Tags