1/*
2 * reserved comment block
3 * DO NOT REMOVE OR ALTER!
4 */
5/*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements.  See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License.  You may obtain a copy of the License at
12 *
13 *      http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22package com.sun.org.apache.xerces.internal.impl.xs.opti;
23
24import org.w3c.dom.UserDataHandler;
25import org.w3c.dom.Node;
26import org.w3c.dom.Document;
27import org.w3c.dom.NodeList;
28import org.w3c.dom.NamedNodeMap;
29
30import org.w3c.dom.DOMException;
31
32
33/**
34 * @xerces.internal
35 *
36 * @author Rahul Srivastava, Sun Microsystems Inc.
37 *
38 */
39public class DefaultNode implements Node {
40
41    // default constructor
42    public DefaultNode() {
43    }
44
45    //
46    // org.w3c.dom.Node methods
47    //
48
49    // getter methods
50    public String getNodeName() {
51        return null;
52    }
53
54
55    public String getNodeValue() throws DOMException {
56        return null;
57    }
58
59
60    public short getNodeType() {
61        return -1;
62    }
63
64
65    public Node getParentNode() {
66        return null;
67    }
68
69
70    public NodeList getChildNodes() {
71        return null;
72    }
73
74
75    public Node getFirstChild() {
76        return null;
77    }
78
79
80    public Node getLastChild() {
81        return null;
82    }
83
84
85    public Node getPreviousSibling() {
86        return null;
87    }
88
89
90    public Node getNextSibling() {
91        return null;
92    }
93
94
95    public NamedNodeMap getAttributes() {
96        return null;
97    }
98
99
100    public Document getOwnerDocument() {
101        return null;
102    }
103
104
105    public boolean hasChildNodes() {
106        return false;
107    }
108
109
110    public Node cloneNode(boolean deep) {
111        return null;
112    }
113
114
115    public void normalize() {
116    }
117
118
119    public boolean isSupported(String feature, String version) {
120        return false;
121    }
122
123
124    public String getNamespaceURI() {
125        return null;
126    }
127
128
129    public String getPrefix() {
130        return null;
131    }
132
133
134    public String getLocalName() {
135        return null;
136    }
137    /** DOM Level 3*/
138    public String getBaseURI(){
139        return null;
140    }
141
142
143
144    public boolean hasAttributes() {
145        return false;
146    }
147
148    // setter methods
149    public void setNodeValue(String nodeValue) throws DOMException {
150        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
151    }
152
153
154    public Node insertBefore(Node newChild, Node refChild) throws DOMException {
155        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
156    }
157
158
159    public Node replaceChild(Node newChild, Node oldChild) throws DOMException {
160        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
161    }
162
163
164    public Node removeChild(Node oldChild) throws DOMException {
165        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
166    }
167
168
169    public Node appendChild(Node newChild) throws DOMException {
170        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
171    }
172
173
174    public void setPrefix(String prefix) throws DOMException {
175        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
176    }
177
178    public short compareDocumentPosition(Node other){
179        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
180    }
181
182    public String getTextContent() throws DOMException{
183        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
184    }
185    public void setTextContent(String textContent)throws DOMException{
186        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
187    }
188    public boolean isSameNode(Node other){
189        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
190
191    }
192    public String lookupPrefix(String namespaceURI){
193        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
194                                        }
195    public boolean isDefaultNamespace(String namespaceURI){
196        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
197    }
198
199    public String lookupNamespaceURI(String prefix){
200        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
201    }
202
203    public boolean isEqualNode(Node arg){
204       throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
205
206    }
207
208    public Object getFeature(String feature, String version){
209        return null;
210    }
211    public Object setUserData(String key,  Object data, UserDataHandler handler){
212       throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
213    }
214    public Object getUserData(String key){
215        return null;
216    }
217
218
219}
220