001: /*
002: * Copyright (c) 1998-2008 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: *
023: * Free Software Foundation, Inc.
024: * 59 Temple Place, Suite 330
025: * Boston, MA 02111-1307 USA
026: *
027: * @author Emil Ong
028: */
029:
030: package com.caucho.xml.saaj;
031:
032: import javax.xml.soap.*;
033: import javax.xml.transform.*;
034: import org.w3c.dom.*;
035: import java.util.*;
036:
037: public class SimpleDocument implements Document {
038: private SOAPElementImpl _root;
039:
040: public SimpleDocument(SOAPElementImpl root) {
041: _root = root;
042: _root.setOwner(this );
043: }
044:
045: // org.w3c.dom.Document
046:
047: public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) {
048: throw new UnsupportedOperationException();
049: }
050:
051: public Attr createAttribute(String name) {
052: throw new UnsupportedOperationException();
053: }
054:
055: public Attr createAttributeNS(String namespaceURI,
056: String qualifiedName) {
057: throw new UnsupportedOperationException();
058: }
059:
060: public CDATASection createCDATASection(String data) {
061: throw new UnsupportedOperationException();
062: }
063:
064: public Comment createComment(String data) {
065: throw new UnsupportedOperationException();
066: }
067:
068: public DocumentFragment createDocumentFragment() {
069: throw new UnsupportedOperationException();
070: }
071:
072: public Element createElement(String tagName) {
073: throw new UnsupportedOperationException();
074: }
075:
076: public Element createElementNS(String namespaceURI,
077: String qualifiedName) {
078: throw new UnsupportedOperationException();
079: }
080:
081: public EntityReference createEntityReference(String name) {
082: throw new UnsupportedOperationException();
083: }
084:
085: public ProcessingInstruction createProcessingInstruction(
086: String target, String data) {
087: throw new UnsupportedOperationException();
088: }
089:
090: public org.w3c.dom.Text createTextNode(String data) {
091: throw new UnsupportedOperationException();
092: }
093:
094: public DocumentType getDoctype() {
095: throw new UnsupportedOperationException();
096: }
097:
098: public Element getDocumentElement() {
099: return _root;
100: }
101:
102: public String getDocumentURI() {
103: throw new UnsupportedOperationException();
104: }
105:
106: public DOMConfiguration getDomConfig() {
107: throw new UnsupportedOperationException();
108: }
109:
110: public Element getElementById(String elementId) {
111: throw new UnsupportedOperationException();
112: }
113:
114: public NodeList getElementsByTagName(String tagname) {
115: throw new UnsupportedOperationException();
116: }
117:
118: public NodeList getElementsByTagNameNS(String namespaceURI,
119: String localName) {
120: throw new UnsupportedOperationException();
121: }
122:
123: public DOMImplementation getImplementation() {
124: throw new UnsupportedOperationException();
125: }
126:
127: public String getInputEncoding() {
128: throw new UnsupportedOperationException();
129: }
130:
131: public boolean getStrictErrorChecking() {
132: throw new UnsupportedOperationException();
133: }
134:
135: public String getXmlEncoding() {
136: throw new UnsupportedOperationException();
137: }
138:
139: public boolean getXmlStandalone() {
140: throw new UnsupportedOperationException();
141: }
142:
143: public String getXmlVersion() {
144: throw new UnsupportedOperationException();
145: }
146:
147: public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
148: boolean deep) {
149: throw new UnsupportedOperationException();
150: }
151:
152: public void normalizeDocument() {
153: throw new UnsupportedOperationException();
154: }
155:
156: public org.w3c.dom.Node renameNode(org.w3c.dom.Node n,
157: String namespaceURI, String qualifiedName)
158: throws DOMException {
159: throw new UnsupportedOperationException();
160: }
161:
162: public void setDocumentURI(String documentURI) {
163: throw new UnsupportedOperationException();
164: }
165:
166: public void setStrictErrorChecking(boolean strictErrorChecking) {
167: throw new UnsupportedOperationException();
168: }
169:
170: public void setXmlStandalone(boolean xmlStandalone) {
171: throw new UnsupportedOperationException();
172: }
173:
174: public void setXmlVersion(String xmlVersion) {
175: throw new UnsupportedOperationException();
176: }
177:
178: // org.w3c.dom.Node
179:
180: public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) {
181: throw new UnsupportedOperationException();
182: }
183:
184: public org.w3c.dom.Node cloneNode(boolean deep) {
185: throw new UnsupportedOperationException();
186: }
187:
188: public short compareDocumentPosition(org.w3c.dom.Node other) {
189: throw new UnsupportedOperationException();
190: }
191:
192: public NamedNodeMap getAttributes() {
193: throw new UnsupportedOperationException();
194: }
195:
196: public String getBaseURI() {
197: throw new UnsupportedOperationException();
198: }
199:
200: public NodeList getChildNodes() {
201: throw new UnsupportedOperationException();
202: }
203:
204: public Object getFeature(String feature, String version) {
205: throw new UnsupportedOperationException();
206: }
207:
208: public org.w3c.dom.Node getFirstChild() {
209: return _root;
210: }
211:
212: public org.w3c.dom.Node getLastChild() {
213: return _root;
214: }
215:
216: public String getLocalName() {
217: throw new UnsupportedOperationException();
218: }
219:
220: public String getNamespaceURI() {
221: throw new UnsupportedOperationException();
222: }
223:
224: public org.w3c.dom.Node getNextSibling() {
225: throw new UnsupportedOperationException();
226: }
227:
228: public String getNodeName() {
229: return "#document";
230: }
231:
232: public short getNodeType() {
233: return DOCUMENT_NODE;
234: }
235:
236: public String getNodeValue() {
237: throw new UnsupportedOperationException();
238: }
239:
240: public Document getOwnerDocument() {
241: throw new UnsupportedOperationException();
242: }
243:
244: public org.w3c.dom.Node getParentNode() {
245: throw new UnsupportedOperationException();
246: }
247:
248: public String getPrefix() {
249: throw new UnsupportedOperationException();
250: }
251:
252: public org.w3c.dom.Node getPreviousSibling() {
253: throw new UnsupportedOperationException();
254: }
255:
256: public String getTextContent() {
257: throw new UnsupportedOperationException();
258: }
259:
260: public Object getUserData(String key) {
261: throw new UnsupportedOperationException();
262: }
263:
264: public boolean hasAttributes() {
265: throw new UnsupportedOperationException();
266: }
267:
268: public boolean hasChildNodes() {
269: throw new UnsupportedOperationException();
270: }
271:
272: public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
273: org.w3c.dom.Node refChild) {
274: throw new UnsupportedOperationException();
275: }
276:
277: public boolean isDefaultNamespace(String namespaceURI) {
278: throw new UnsupportedOperationException();
279: }
280:
281: public boolean isEqualNode(org.w3c.dom.Node arg) {
282: throw new UnsupportedOperationException();
283: }
284:
285: public boolean isSameNode(org.w3c.dom.Node other) {
286: throw new UnsupportedOperationException();
287: }
288:
289: public boolean isSupported(String feature, String version) {
290: throw new UnsupportedOperationException();
291: }
292:
293: public String lookupNamespaceURI(String prefix) {
294: throw new UnsupportedOperationException();
295: }
296:
297: public String lookupPrefix(String namespaceURI) {
298: throw new UnsupportedOperationException();
299: }
300:
301: public void normalize() {
302: throw new UnsupportedOperationException();
303: }
304:
305: public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) {
306: throw new UnsupportedOperationException();
307: }
308:
309: public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
310: org.w3c.dom.Node oldChild) {
311: throw new UnsupportedOperationException();
312: }
313:
314: public void setNodeValue(String nodeValue) {
315: throw new UnsupportedOperationException();
316: }
317:
318: public void setPrefix(String prefix) {
319: throw new UnsupportedOperationException();
320: }
321:
322: public void setTextContent(String textContent) {
323: throw new UnsupportedOperationException();
324: }
325:
326: public Object setUserData(String key, Object data,
327: UserDataHandler handler) {
328: throw new UnsupportedOperationException();
329: }
330: }
|