KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > tidy > DOMTextImpl


1 /*
2  * @(#)DOMTextImpl.java 1.11 2000/08/16
3  *
4  */

5
6 package org.w3c.tidy;
7
8 import org.w3c.dom.DOMException JavaDoc;
9
10 /**
11  *
12  * DOMTextImpl
13  *
14  * (c) 1998-2000 (W3C) MIT, INRIA, Keio University
15  * See Tidy.java for the copyright notice.
16  * Derived from <a HREF="http://www.w3.org/People/Raggett/tidy">
17  * HTML Tidy Release 4 Aug 2000</a>
18  *
19  * @author Dave Raggett <dsr@w3.org>
20  * @author Andy Quick <ac.quick@sympatico.ca> (translation to Java)
21  * @version 1.7, 1999/12/06 Tidy Release 30 Nov 1999
22  * @version 1.8, 2000/01/22 Tidy Release 13 Jan 2000
23  * @version 1.9, 2000/06/03 Tidy Release 30 Apr 2000
24  * @version 1.10, 2000/07/22 Tidy Release 8 Jul 2000
25  * @version 1.11, 2000/08/16 Tidy Release 4 Aug 2000
26  */

27
28 public class DOMTextImpl extends DOMCharacterDataImpl
29                             implements org.w3c.dom.Text JavaDoc {
30
31     protected DOMTextImpl(Node adaptee)
32     {
33         super(adaptee);
34     }
35
36
37     /* --------------------- DOM ---------------------------- */
38
39     /**
40      * @see org.w3c.dom.Node#getNodeName
41      */

42     public String JavaDoc getNodeName()
43     {
44         return "#text";
45     }
46
47     /**
48      * @see org.w3c.dom.Node#getNodeType
49      */

50     public short getNodeType()
51     {
52         return org.w3c.dom.Node.TEXT_NODE;
53     }
54
55     /**
56      * @see org.w3c.dom.Text#splitText
57      */

58     public org.w3c.dom.Text JavaDoc splitText(int offset) throws DOMException JavaDoc
59     {
60         // NOT SUPPORTED
61
throw new DOMExceptionImpl(DOMException.NO_MODIFICATION_ALLOWED_ERR,
62                                    "Not supported");
63     }
64
65     public boolean isElementContentWhitespace() throws DOMException JavaDoc
66     {
67         // NOT SUPPORTED
68
throw new DOMExceptionImpl(DOMException.NOT_SUPPORTED_ERR,
69                                    "Not supported");
70     }
71
72     public String JavaDoc getWholeText() throws DOMException JavaDoc
73     {
74         // NOT SUPPORTED
75
throw new DOMExceptionImpl(DOMException.NOT_SUPPORTED_ERR,
76                                    "Not supported");
77     }
78
79     public org.w3c.dom.Text JavaDoc replaceWholeText(String JavaDoc sTxt) throws DOMException JavaDoc
80     {
81         // NOT SUPPORTED
82
throw new DOMExceptionImpl(DOMException.NO_MODIFICATION_ALLOWED_ERR,
83                                    "Not supported");
84     }
85
86     public org.w3c.dom.Node JavaDoc adoptNode (org.w3c.dom.Node JavaDoc oNode) {
87       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl adoptNode() Not implemented");
88     }
89
90     public short compareDocumentPosition (org.w3c.dom.Node JavaDoc oNode) {
91       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl compareDocumentPosition() Not implemented");
92     }
93
94     public boolean isDefaultNamespace(String JavaDoc sStr1) {
95       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl isDefaultNamespace() Not implemented");
96     }
97
98     public boolean isEqualNode(org.w3c.dom.Node JavaDoc oNode) {
99       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl isEqualNode() Not implemented");
100     }
101
102     public boolean isSameNode(org.w3c.dom.Node JavaDoc oNode) {
103       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl isSameNode() Not implemented");
104     }
105
106     public String JavaDoc lookupPrefix(String JavaDoc sStr1) {
107       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl lookupPreffix() Not implemented");
108     }
109
110     public String JavaDoc lookupNamespaceURI(String JavaDoc sStr1) {
111       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl lookupNamespaceURI() Not implemented");
112     }
113
114     public String JavaDoc getDocumentURI() {
115       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getDocumentURI() Not implemented");
116     }
117
118     public void setDocumentURI(String JavaDoc sStr1) {
119       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl setDocumentURI() Not implemented");
120     }
121
122     public boolean getStrictErrorChecking() {
123       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getStrictErrorChecking() Not implemented");
124     }
125
126     public void setStrictErrorChecking(boolean bStrictCheck) {
127       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl setStrictErrorChecking() Not implemented");
128     }
129
130     public boolean getXmlStandalone() {
131       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getXmlStandalone() Not implemented");
132     }
133
134     public void setXmlStandalone(boolean bXmlStandalone) {
135       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl setXmlStandalone() Not implemented");
136     }
137
138     public Object JavaDoc getFeature(String JavaDoc sStr1, String JavaDoc sStr2) {
139       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getFeature() Not implemented");
140     }
141
142     public String JavaDoc getInputEncoding() {
143       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getInputEncoding() Not implemented");
144     }
145
146     public String JavaDoc getXmlEncoding() {
147       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getXmlEncoding() Not implemented");
148     }
149
150     public String JavaDoc getXmlVersion() {
151       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getXmlVersion() Not implemented");
152     }
153
154     public void setXmlVersion(String JavaDoc sStr1) {
155       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl setXmlVersion() Not implemented");
156     }
157
158     public Object JavaDoc getUserData(String JavaDoc sStr1) {
159       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getUserData() Not implemented");
160     }
161
162     public Object JavaDoc setUserData(String JavaDoc sStr1, Object JavaDoc oObj2, org.w3c.dom.UserDataHandler JavaDoc oHndlr) {
163       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl setUserData() Not implemented");
164     }
165
166     public org.w3c.dom.DOMConfiguration JavaDoc getDomConfig () {
167       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getDomConfig() Not implemented");
168     }
169
170     public void normalizeDocument () {
171       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl normalizeDocument() Not implemented");
172     }
173
174     public org.w3c.dom.Node JavaDoc renameNode (org.w3c.dom.Node JavaDoc oNode, String JavaDoc sStr1, String JavaDoc sStr2) {
175       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl renameNode() Not implemented");
176     }
177
178     public String JavaDoc getBaseURI() {
179       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getBaseURI() Not implemented");
180     }
181
182     public String JavaDoc getTextContent() {
183       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl getTextContent() Not implemented");
184     }
185
186     public void setTextContent(String JavaDoc sStr1) {
187       throw new UnsupportedOperationException JavaDoc("org.w3c.tidy.DOMTextImpl setTextContent() Not implemented");
188     }
189
190 }
191
Popular Tags