KickJava   Java API By Example, From Geeks To Geeks.

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


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.DOMConfiguration JavaDoc;
20 import org.w3c.dom.Attr JavaDoc;
21 import org.w3c.dom.Node JavaDoc;
22 import org.w3c.dom.Text JavaDoc;
23 import org.w3c.dom.Element JavaDoc;
24 import org.w3c.dom.Comment JavaDoc;
25 import org.w3c.dom.Document JavaDoc;
26 import org.w3c.dom.NodeList JavaDoc;
27 import org.w3c.dom.DocumentType JavaDoc;
28 import org.w3c.dom.CDATASection JavaDoc;
29 import org.w3c.dom.EntityReference JavaDoc;
30 import org.w3c.dom.DocumentFragment JavaDoc;
31 import org.w3c.dom.DOMImplementation JavaDoc;
32 import org.w3c.dom.ProcessingInstruction JavaDoc;
33
34 import org.w3c.dom.DOMException JavaDoc;
35
36
37 /**
38  * @xerces.internal
39  *
40  * @author Rahul Srivastava, Sun Microsystems Inc.
41  *
42  * @version $Id: DefaultDocument.java,v 1.9 2005/05/02 22:00:52 mrglavas Exp $
43  */

44 public class DefaultDocument extends NodeImpl
45                              implements Document JavaDoc {
46
47     private String JavaDoc fDocumentURI = null;
48     
49     // default constructor
50
public DefaultDocument() {
51     }
52     
53     //
54
// org.w3c.dom.Document methods
55
//
56

57     public DocumentType JavaDoc getDoctype() {
58     return null;
59     }
60
61
62     public DOMImplementation JavaDoc getImplementation() {
63     return null;
64     }
65
66
67     public Element JavaDoc getDocumentElement() {
68     return null;
69     }
70
71
72     public NodeList JavaDoc getElementsByTagName(String JavaDoc tagname) {
73     return null;
74     }
75
76
77     public NodeList JavaDoc getElementsByTagNameNS(String JavaDoc namespaceURI, String JavaDoc localName) {
78     return null;
79     }
80
81
82     public Element JavaDoc getElementById(String JavaDoc elementId) {
83     return null;
84     }
85
86
87     public Node JavaDoc importNode(Node JavaDoc importedNode, boolean deep) throws DOMException JavaDoc {
88     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
89     }
90
91
92     public Element JavaDoc createElement(String JavaDoc tagName) throws DOMException JavaDoc {
93     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
94     }
95
96
97     public DocumentFragment JavaDoc createDocumentFragment() {
98     return null;
99     }
100
101
102     public Text JavaDoc createTextNode(String JavaDoc data) {
103     return null;
104     }
105
106     public Comment JavaDoc createComment(String JavaDoc data) {
107     return null;
108     }
109     
110
111     public CDATASection JavaDoc createCDATASection(String JavaDoc data) throws DOMException JavaDoc {
112     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
113     }
114
115
116     public ProcessingInstruction JavaDoc createProcessingInstruction(String JavaDoc target, String JavaDoc data) throws DOMException JavaDoc {
117     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
118     }
119
120
121     public Attr JavaDoc createAttribute(String JavaDoc name) throws DOMException JavaDoc {
122     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
123     }
124
125
126     public EntityReference JavaDoc createEntityReference(String JavaDoc name) throws DOMException JavaDoc {
127     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
128     }
129
130
131     public Element JavaDoc createElementNS(String JavaDoc namespaceURI, String JavaDoc qualifiedName) throws DOMException JavaDoc {
132     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
133     }
134
135
136     public Attr JavaDoc createAttributeNS(String JavaDoc namespaceURI, String JavaDoc qualifiedName) throws DOMException JavaDoc {
137     throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
138     }
139
140     // DOM Level 3 methods.
141

142     public String JavaDoc getInputEncoding(){
143         return null;
144     }
145     
146     /**
147     public void setInputEncoding(String actualEncoding){
148        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
149     }
150     */

151     
152     public String JavaDoc getXmlEncoding(){
153         return null;
154     }
155     
156     
157     /**
158      * An attribute specifying, as part of the XML declaration, the encoding
159      * of this document. This is <code>null</code> when unspecified.
160      * @since DOM Level 3
161     public void setXmlEncoding(String encoding){
162         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
163     }
164      */

165      
166     /**
167      * An attribute specifying, as part of the XML declaration, whether this
168      * document is standalone.
169      * <br> This attribute represents the property [standalone] defined in .
170      * @since DOM Level 3
171      */

172     public boolean getXmlStandalone(){
173         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
174     }
175     /**
176      * An attribute specifying, as part of the XML declaration, whether this
177      * document is standalone.
178      * <br> This attribute represents the property [standalone] defined in .
179      * @since DOM Level 3
180      */

181     public void setXmlStandalone(boolean standalone){
182         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
183     }
184
185     /**
186      * An attribute specifying, as part of the XML declaration, the version
187      * number of this document. This is <code>null</code> when unspecified.
188      * <br> This attribute represents the property [version] defined in .
189      * @exception DOMException
190      * NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
191      * not supported by this <code>Document</code>.
192      * @since DOM Level 3
193      */

194     public String JavaDoc getXmlVersion(){
195         return null;
196     }
197     /**
198      * An attribute specifying, as part of the XML declaration, the version
199      * number of this document. This is <code>null</code> when unspecified.
200      * <br> This attribute represents the property [version] defined in .
201      * @exception DOMException
202      * NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
203      * not supported by this <code>Document</code>.
204      * @since DOM Level 3
205      */

206     public void setXmlVersion(String JavaDoc version) throws DOMException JavaDoc{
207         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
208     }
209
210     /**
211      * An attribute specifying whether errors checking is enforced or not.
212      * When set to <code>false</code>, the implementation is free to not
213      * test every possible error case normally defined on DOM operations,
214      * and not raise any <code>DOMException</code>. In case of error, the
215      * behavior is undefined. This attribute is <code>true</code> by
216      * defaults.
217      * @since DOM Level 3
218      */

219     public boolean getStrictErrorChecking(){
220         return false;
221     }
222     /**
223      * An attribute specifying whether errors checking is enforced or not.
224      * When set to <code>false</code>, the implementation is free to not
225      * test every possible error case normally defined on DOM operations,
226      * and not raise any <code>DOMException</code>. In case of error, the
227      * behavior is undefined. This attribute is <code>true</code> by
228      * defaults.
229      * @since DOM Level 3
230      */

231     public void setStrictErrorChecking(boolean strictErrorChecking){
232         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
233     }
234
235     /**
236      * The location of the document or <code>null</code> if undefined.
237      * <br>Beware that when the <code>Document</code> supports the feature
238      * "HTML" , the href attribute of the HTML BASE element takes precedence
239      * over this attribute.
240      * @since DOM Level 3
241      */

242     public String JavaDoc getDocumentURI() {
243         return fDocumentURI;
244     }
245     
246     /**
247      * The location of the document or <code>null</code> if undefined.
248      * <br>Beware that when the <code>Document</code> supports the feature
249      * "HTML" , the href attribute of the HTML BASE element takes precedence
250      * over this attribute.
251      * @since DOM Level 3
252      */

253     public void setDocumentURI(String JavaDoc documentURI) {
254         fDocumentURI = documentURI;
255     }
256
257     /** DOM Level 3*/
258     public Node JavaDoc adoptNode(Node JavaDoc source) throws DOMException JavaDoc{
259         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
260     }
261     
262     /** DOM Level 3*/
263     public void normalizeDocument(){
264         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
265     }
266
267     /**
268      * The configuration used when <code>Document.normalizeDocument</code> is
269      * invoked.
270      * @since DOM Level 3
271      */

272     public DOMConfiguration JavaDoc getDomConfig(){
273         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
274     }
275     
276     /** DOM Level 3*/
277     public Node JavaDoc renameNode(Node JavaDoc n,String JavaDoc namespaceURI, String JavaDoc name) throws DOMException JavaDoc{
278         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
279     }
280     
281
282
283
284
285     
286
287
288 }
289
Popular Tags