001: /*
002: * @(#)DOMTextImpl.java 1.11 2000/08/16
003: *
004: */
005:
006: package org.w3c.tidy;
007:
008: import org.w3c.dom.DOMException;
009:
010: /**
011: *
012: * DOMTextImpl
013: *
014: * (c) 1998-2000 (W3C) MIT, INRIA, Keio University
015: * See Tidy.java for the copyright notice.
016: * Derived from <a href="http://www.w3.org/People/Raggett/tidy">
017: * HTML Tidy Release 4 Aug 2000</a>
018: *
019: * @author Dave Raggett <dsr@w3.org>
020: * @author Andy Quick <ac.quick@sympatico.ca> (translation to Java)
021: * @version 1.7, 1999/12/06 Tidy Release 30 Nov 1999
022: * @version 1.8, 2000/01/22 Tidy Release 13 Jan 2000
023: * @version 1.9, 2000/06/03 Tidy Release 30 Apr 2000
024: * @version 1.10, 2000/07/22 Tidy Release 8 Jul 2000
025: * @version 1.11, 2000/08/16 Tidy Release 4 Aug 2000
026: */
027:
028: public class DOMTextImpl extends DOMCharacterDataImpl implements
029: org.w3c.dom.Text {
030:
031: protected DOMTextImpl(Node adaptee) {
032: super (adaptee);
033: }
034:
035: /* --------------------- DOM ---------------------------- */
036:
037: /**
038: * @see org.w3c.dom.Node#getNodeName
039: */
040: public String getNodeName() {
041: return "#text";
042: }
043:
044: /**
045: * @see org.w3c.dom.Node#getNodeType
046: */
047: public short getNodeType() {
048: return org.w3c.dom.Node.TEXT_NODE;
049: }
050:
051: /**
052: * @see org.w3c.dom.Text#splitText
053: */
054: public org.w3c.dom.Text splitText(int offset) throws DOMException {
055: // NOT SUPPORTED
056: throw new DOMExceptionImpl(
057: DOMException.NO_MODIFICATION_ALLOWED_ERR,
058: "Not supported");
059: }
060:
061: public boolean isElementContentWhitespace() throws DOMException {
062: // NOT SUPPORTED
063: throw new DOMExceptionImpl(DOMException.NOT_SUPPORTED_ERR,
064: "Not supported");
065: }
066:
067: public String getWholeText() throws DOMException {
068: // NOT SUPPORTED
069: throw new DOMExceptionImpl(DOMException.NOT_SUPPORTED_ERR,
070: "Not supported");
071: }
072:
073: public org.w3c.dom.Text replaceWholeText(String sTxt)
074: throws DOMException {
075: // NOT SUPPORTED
076: throw new DOMExceptionImpl(
077: DOMException.NO_MODIFICATION_ALLOWED_ERR,
078: "Not supported");
079: }
080:
081: public org.w3c.dom.Node adoptNode(org.w3c.dom.Node oNode) {
082: throw new UnsupportedOperationException(
083: "org.w3c.tidy.DOMTextImpl adoptNode() Not implemented");
084: }
085:
086: public short compareDocumentPosition(org.w3c.dom.Node oNode) {
087: throw new UnsupportedOperationException(
088: "org.w3c.tidy.DOMTextImpl compareDocumentPosition() Not implemented");
089: }
090:
091: public boolean isDefaultNamespace(String sStr1) {
092: throw new UnsupportedOperationException(
093: "org.w3c.tidy.DOMTextImpl isDefaultNamespace() Not implemented");
094: }
095:
096: public boolean isEqualNode(org.w3c.dom.Node oNode) {
097: throw new UnsupportedOperationException(
098: "org.w3c.tidy.DOMTextImpl isEqualNode() Not implemented");
099: }
100:
101: public boolean isSameNode(org.w3c.dom.Node oNode) {
102: throw new UnsupportedOperationException(
103: "org.w3c.tidy.DOMTextImpl isSameNode() Not implemented");
104: }
105:
106: public String lookupPrefix(String sStr1) {
107: throw new UnsupportedOperationException(
108: "org.w3c.tidy.DOMTextImpl lookupPreffix() Not implemented");
109: }
110:
111: public String lookupNamespaceURI(String sStr1) {
112: throw new UnsupportedOperationException(
113: "org.w3c.tidy.DOMTextImpl lookupNamespaceURI() Not implemented");
114: }
115:
116: public String getDocumentURI() {
117: throw new UnsupportedOperationException(
118: "org.w3c.tidy.DOMTextImpl getDocumentURI() Not implemented");
119: }
120:
121: public void setDocumentURI(String sStr1) {
122: throw new UnsupportedOperationException(
123: "org.w3c.tidy.DOMTextImpl setDocumentURI() Not implemented");
124: }
125:
126: public boolean getStrictErrorChecking() {
127: throw new UnsupportedOperationException(
128: "org.w3c.tidy.DOMTextImpl getStrictErrorChecking() Not implemented");
129: }
130:
131: public void setStrictErrorChecking(boolean bStrictCheck) {
132: throw new UnsupportedOperationException(
133: "org.w3c.tidy.DOMTextImpl setStrictErrorChecking() Not implemented");
134: }
135:
136: public boolean getXmlStandalone() {
137: throw new UnsupportedOperationException(
138: "org.w3c.tidy.DOMTextImpl getXmlStandalone() Not implemented");
139: }
140:
141: public void setXmlStandalone(boolean bXmlStandalone) {
142: throw new UnsupportedOperationException(
143: "org.w3c.tidy.DOMTextImpl setXmlStandalone() Not implemented");
144: }
145:
146: public Object getFeature(String sStr1, String sStr2) {
147: throw new UnsupportedOperationException(
148: "org.w3c.tidy.DOMTextImpl getFeature() Not implemented");
149: }
150:
151: public String getInputEncoding() {
152: throw new UnsupportedOperationException(
153: "org.w3c.tidy.DOMTextImpl getInputEncoding() Not implemented");
154: }
155:
156: public String getXmlEncoding() {
157: throw new UnsupportedOperationException(
158: "org.w3c.tidy.DOMTextImpl getXmlEncoding() Not implemented");
159: }
160:
161: public String getXmlVersion() {
162: throw new UnsupportedOperationException(
163: "org.w3c.tidy.DOMTextImpl getXmlVersion() Not implemented");
164: }
165:
166: public void setXmlVersion(String sStr1) {
167: throw new UnsupportedOperationException(
168: "org.w3c.tidy.DOMTextImpl setXmlVersion() Not implemented");
169: }
170:
171: public Object getUserData(String sStr1) {
172: throw new UnsupportedOperationException(
173: "org.w3c.tidy.DOMTextImpl getUserData() Not implemented");
174: }
175:
176: public Object setUserData(String sStr1, Object oObj2,
177: org.w3c.dom.UserDataHandler oHndlr) {
178: throw new UnsupportedOperationException(
179: "org.w3c.tidy.DOMTextImpl setUserData() Not implemented");
180: }
181:
182: public org.w3c.dom.DOMConfiguration getDomConfig() {
183: throw new UnsupportedOperationException(
184: "org.w3c.tidy.DOMTextImpl getDomConfig() Not implemented");
185: }
186:
187: public void normalizeDocument() {
188: throw new UnsupportedOperationException(
189: "org.w3c.tidy.DOMTextImpl normalizeDocument() Not implemented");
190: }
191:
192: public org.w3c.dom.Node renameNode(org.w3c.dom.Node oNode,
193: String sStr1, String sStr2) {
194: throw new UnsupportedOperationException(
195: "org.w3c.tidy.DOMTextImpl renameNode() Not implemented");
196: }
197:
198: public String getBaseURI() {
199: throw new UnsupportedOperationException(
200: "org.w3c.tidy.DOMTextImpl getBaseURI() Not implemented");
201: }
202:
203: public String getTextContent() {
204: throw new UnsupportedOperationException(
205: "org.w3c.tidy.DOMTextImpl getTextContent() Not implemented");
206: }
207:
208: public void setTextContent(String sStr1) {
209: throw new UnsupportedOperationException(
210: "org.w3c.tidy.DOMTextImpl setTextContent() Not implemented");
211: }
212:
213: }
|