KickJava   Java API By Example, From Geeks To Geeks.

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


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.DOMConfiguration JavaDoc;
61 import org.w3c.dom.Attr JavaDoc;
62 import org.w3c.dom.Node JavaDoc;
63 import org.w3c.dom.Text JavaDoc;
64 import org.w3c.dom.Element JavaDoc;
65 import org.w3c.dom.Comment JavaDoc;
66 import org.w3c.dom.Document JavaDoc;
67 import org.w3c.dom.NodeList JavaDoc;
68 import org.w3c.dom.DocumentType JavaDoc;
69 import org.w3c.dom.CDATASection JavaDoc;
70 import org.w3c.dom.EntityReference JavaDoc;
71 import org.w3c.dom.DocumentFragment JavaDoc;
72 import org.w3c.dom.DOMImplementation JavaDoc;
73 import org.w3c.dom.ProcessingInstruction JavaDoc;
74
75 import org.w3c.dom.DOMException JavaDoc;
76
77
78 /**
79  * @author Rahul Srivastava, Sun Microsystems Inc.
80  *
81  * @version $Id: DefaultDocument.java,v 1.5 2003/11/13 22:47:16 elena Exp $
82  */

83 public class DefaultDocument extends NodeImpl
84                              implements Document JavaDoc {
85
86     // default constructor
87
public DefaultDocument() {
88     }
89     
90     //
91
// org.w3c.dom.Document methods
92
//
93

94     public DocumentType JavaDoc getDoctype() {
95     return null;
96     }
97
98
99     public DOMImplementation JavaDoc getImplementation() {
100     return null;
101     }
102
103
104     public Element JavaDoc getDocumentElement() {
105     return null;
106     }
107
108
109     public NodeList JavaDoc getElementsByTagName(String JavaDoc tagname) {
110     return null;
111     }
112
113
114     public NodeList JavaDoc getElementsByTagNameNS(String JavaDoc namespaceURI, String JavaDoc localName) {
115     return null;
116     }
117
118
119     public Element JavaDoc getElementById(String JavaDoc elementId) {
120     return null;
121     }
122
123
124     public Node JavaDoc importNode(Node JavaDoc importedNode, boolean deep) throws DOMException JavaDoc {
125     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
126     }
127
128
129     public Element JavaDoc createElement(String JavaDoc tagName) throws DOMException JavaDoc {
130     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
131     }
132
133
134     public DocumentFragment JavaDoc createDocumentFragment() {
135     return null;
136     }
137
138
139     public Text JavaDoc createTextNode(String JavaDoc data) {
140     return null;
141     }
142
143     public Comment JavaDoc createComment(String JavaDoc data) {
144     return null;
145     }
146     
147
148     public CDATASection JavaDoc createCDATASection(String JavaDoc data) throws DOMException JavaDoc {
149     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
150     }
151
152
153     public ProcessingInstruction JavaDoc createProcessingInstruction(String JavaDoc target, String JavaDoc data) throws DOMException JavaDoc {
154     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
155     }
156
157
158     public Attr JavaDoc createAttribute(String JavaDoc name) throws DOMException JavaDoc {
159     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
160     }
161
162
163     public EntityReference JavaDoc createEntityReference(String JavaDoc name) throws DOMException JavaDoc {
164     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
165     }
166
167
168     public Element JavaDoc createElementNS(String JavaDoc namespaceURI, String JavaDoc qualifiedName) throws DOMException JavaDoc {
169     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
170     }
171
172
173     public Attr JavaDoc createAttributeNS(String JavaDoc namespaceURI, String JavaDoc qualifiedName) throws DOMException JavaDoc {
174     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
175     }
176
177     // DOM Level 3 methods.
178

179     public String JavaDoc getInputEncoding(){
180         return null;
181     }
182     
183     /**
184     public void setInputEncoding(String actualEncoding){
185        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
186     }
187     */

188     
189     public String JavaDoc getXmlEncoding(){
190         return null;
191     }
192     
193     
194     /**
195      * An attribute specifying, as part of the XML declaration, the encoding
196      * of this document. This is <code>null</code> when unspecified.
197      * @since DOM Level 3
198     public void setXmlEncoding(String encoding){
199         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
200     }
201      */

202      
203     /**
204      * An attribute specifying, as part of the XML declaration, whether this
205      * document is standalone.
206      * <br> This attribute represents the property [standalone] defined in .
207      * @since DOM Level 3
208      */

209     public boolean getXmlStandalone(){
210         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
211     }
212     /**
213      * An attribute specifying, as part of the XML declaration, whether this
214      * document is standalone.
215      * <br> This attribute represents the property [standalone] defined in .
216      * @since DOM Level 3
217      */

218     public void setXmlStandalone(boolean standalone){
219         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
220     }
221
222     /**
223      * An attribute specifying, as part of the XML declaration, the version
224      * number of this document. This is <code>null</code> when unspecified.
225      * <br> This attribute represents the property [version] defined in .
226      * @exception DOMException
227      * NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
228      * not supported by this <code>Document</code>.
229      * @since DOM Level 3
230      */

231     public String JavaDoc getXmlVersion(){
232         return null;
233     }
234     /**
235      * An attribute specifying, as part of the XML declaration, the version
236      * number of this document. This is <code>null</code> when unspecified.
237      * <br> This attribute represents the property [version] defined in .
238      * @exception DOMException
239      * NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
240      * not supported by this <code>Document</code>.
241      * @since DOM Level 3
242      */

243     public void setXmlVersion(String JavaDoc version) throws DOMException JavaDoc{
244         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
245     }
246
247     /**
248      * An attribute specifying whether errors checking is enforced or not.
249      * When set to <code>false</code>, the implementation is free to not
250      * test every possible error case normally defined on DOM operations,
251      * and not raise any <code>DOMException</code>. In case of error, the
252      * behavior is undefined. This attribute is <code>true</code> by
253      * defaults.
254      * @since DOM Level 3
255      */

256     public boolean getStrictErrorChecking(){
257         return false;
258     }
259     /**
260      * An attribute specifying whether errors checking is enforced or not.
261      * When set to <code>false</code>, the implementation is free to not
262      * test every possible error case normally defined on DOM operations,
263      * and not raise any <code>DOMException</code>. In case of error, the
264      * behavior is undefined. This attribute is <code>true</code> by
265      * defaults.
266      * @since DOM Level 3
267      */

268     public void setStrictErrorChecking(boolean strictErrorChecking){
269         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
270     }
271
272     /**
273      * The location of the document or <code>null</code> if undefined.
274      * <br>Beware that when the <code>Document</code> supports the feature
275      * "HTML" , the href attribute of the HTML BASE element takes precedence
276      * over this attribute.
277      * @since DOM Level 3
278      */

279     public String JavaDoc getDocumentURI(){
280         return null;
281     }
282     /**
283      * The location of the document or <code>null</code> if undefined.
284      * <br>Beware that when the <code>Document</code> supports the feature
285      * "HTML" , the href attribute of the HTML BASE element takes precedence
286      * over this attribute.
287      * @since DOM Level 3
288      */

289     public void setDocumentURI(String JavaDoc documentURI){
290         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
291     }
292
293     /** DOM Level 3*/
294     public Node JavaDoc adoptNode(Node JavaDoc source) throws DOMException JavaDoc{
295         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
296     }
297     
298     /** DOM Level 3*/
299     public void normalizeDocument(){
300         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
301     }
302
303     /**
304      * The configuration used when <code>Document.normalizeDocument</code> is
305      * invoked.
306      * @since DOM Level 3
307      */

308     public DOMConfiguration JavaDoc getDomConfig(){
309         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
310     }
311     
312     /** DOM Level 3*/
313     public Node JavaDoc renameNode(Node JavaDoc n,String JavaDoc namespaceURI, String JavaDoc name) throws DOMException JavaDoc{
314         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
315     }
316     
317
318
319
320
321     
322
323
324 }
325
Popular Tags