001: /*
002: * @(#)DOMDocumentTypeImpl.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: * DOMDocumentTypeImpl
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 DOMDocumentTypeImpl extends DOMNodeImpl implements
029: org.w3c.dom.DocumentType {
030:
031: protected DOMDocumentTypeImpl(Node adaptee) {
032: super (adaptee);
033: }
034:
035: /* --------------------- DOM ---------------------------- */
036:
037: /**
038: * @see org.w3c.dom.Node#getNodeType
039: */
040: public short getNodeType() {
041: return org.w3c.dom.Node.DOCUMENT_TYPE_NODE;
042: }
043:
044: /**
045: * @see org.w3c.dom.Node#getNodeName
046: */
047: public String getNodeName() {
048: return getName();
049: }
050:
051: /**
052: * @see org.w3c.dom.DocumentType#getName
053: */
054: public String getName() {
055: String value = null;
056: if (adaptee.type == Node.DocTypeTag) {
057:
058: if (adaptee.textarray != null
059: && adaptee.start < adaptee.end) {
060: value = Lexer.getString(adaptee.textarray,
061: adaptee.start, adaptee.end - adaptee.start);
062: }
063: }
064: return value;
065: }
066:
067: public org.w3c.dom.NamedNodeMap getEntities() {
068: // NOT SUPPORTED
069: return null;
070: }
071:
072: public org.w3c.dom.NamedNodeMap getNotations() {
073: // NOT SUPPORTED
074: return null;
075: }
076:
077: /**
078: * DOM2 - not implemented.
079: */
080: public String getPublicId() {
081: return null;
082: }
083:
084: /**
085: * DOM2 - not implemented.
086: */
087: public String getSystemId() {
088: return null;
089: }
090:
091: /**
092: * DOM2 - not implemented.
093: */
094: public String getInternalSubset() {
095: return null;
096: }
097:
098: public org.w3c.dom.Node adoptNode(org.w3c.dom.Node oNode) {
099: throw new UnsupportedOperationException(
100: "org.w3c.tidy.DOMDocumentTypeImpl adoptNode() Not implemented");
101: }
102:
103: public short compareDocumentPosition(org.w3c.dom.Node oNode) {
104: throw new UnsupportedOperationException(
105: "org.w3c.tidy.DOMDocumentTypeImpl compareDocumentPosition() Not implemented");
106: }
107:
108: public boolean isDefaultNamespace(String sStr1) {
109: throw new UnsupportedOperationException(
110: "org.w3c.tidy.DOMDocumentTypeImpl isDefaultNamespace() Not implemented");
111: }
112:
113: public boolean isEqualNode(org.w3c.dom.Node oNode) {
114: throw new UnsupportedOperationException(
115: "org.w3c.tidy.DOMDocumentTypeImpl isEqualNode() Not implemented");
116: }
117:
118: public boolean isSameNode(org.w3c.dom.Node oNode) {
119: throw new UnsupportedOperationException(
120: "org.w3c.tidy.DOMDocumentTypeImpl isSameNode() Not implemented");
121: }
122:
123: public String lookupPrefix(String sStr1) {
124: throw new UnsupportedOperationException(
125: "org.w3c.tidy.DOMDocumentTypeImpl lookupPreffix() Not implemented");
126: }
127:
128: public String lookupNamespaceURI(String sStr1) {
129: throw new UnsupportedOperationException(
130: "org.w3c.tidy.DOMDocumentTypeImpl lookupNamespaceURI() Not implemented");
131: }
132:
133: public String getDocumentURI() {
134: throw new UnsupportedOperationException(
135: "org.w3c.tidy.DOMDocumentTypeImpl getDocumentURI() Not implemented");
136: }
137:
138: public void setDocumentURI(String sStr1) {
139: throw new UnsupportedOperationException(
140: "org.w3c.tidy.DOMDocumentTypeImpl setDocumentURI() Not implemented");
141: }
142:
143: public boolean getStrictErrorChecking() {
144: throw new UnsupportedOperationException(
145: "org.w3c.tidy.DOMDocumentTypeImpl getStrictErrorChecking() Not implemented");
146: }
147:
148: public void setStrictErrorChecking(boolean bStrictCheck) {
149: throw new UnsupportedOperationException(
150: "org.w3c.tidy.DOMDocumentTypeImpl setStrictErrorChecking() Not implemented");
151: }
152:
153: public boolean getXmlStandalone() {
154: throw new UnsupportedOperationException(
155: "org.w3c.tidy.DOMDocumentTypeImpl getXmlStandalone() Not implemented");
156: }
157:
158: public void setXmlStandalone(boolean bXmlStandalone) {
159: throw new UnsupportedOperationException(
160: "org.w3c.tidy.DOMDocumentTypeImpl setXmlStandalone() Not implemented");
161: }
162:
163: public Object getFeature(String sStr1, String sStr2) {
164: throw new UnsupportedOperationException(
165: "org.w3c.tidy.DOMDocumentTypeImpl getFeature() Not implemented");
166: }
167:
168: public String getInputEncoding() {
169: throw new UnsupportedOperationException(
170: "org.w3c.tidy.DOMDocumentTypeImpl getInputEncoding() Not implemented");
171: }
172:
173: public String getXmlEncoding() {
174: throw new UnsupportedOperationException(
175: "org.w3c.tidy.DOMDocumentTypeImpl getXmlEncoding() Not implemented");
176: }
177:
178: public String getXmlVersion() {
179: throw new UnsupportedOperationException(
180: "org.w3c.tidy.DOMDocumentTypeImpl getXmlVersion() Not implemented");
181: }
182:
183: public void setXmlVersion(String sStr1) {
184: throw new UnsupportedOperationException(
185: "org.w3c.tidy.DOMDocumentTypeImpl setXmlVersion() Not implemented");
186: }
187:
188: public Object getUserData(String sStr1) {
189: throw new UnsupportedOperationException(
190: "org.w3c.tidy.DOMDocumentTypeImpl getUserData() Not implemented");
191: }
192:
193: public Object setUserData(String sStr1, Object oObj2,
194: org.w3c.dom.UserDataHandler oHndlr) {
195: throw new UnsupportedOperationException(
196: "org.w3c.tidy.DOMDocumentTypeImpl setUserData() Not implemented");
197: }
198:
199: public org.w3c.dom.DOMConfiguration getDomConfig() {
200: throw new UnsupportedOperationException(
201: "org.w3c.tidy.DOMDocumentTypeImpl getDomConfig() Not implemented");
202: }
203:
204: public void normalizeDocument() {
205: throw new UnsupportedOperationException(
206: "org.w3c.tidy.DOMDocumentTypeImpl normalizeDocument() Not implemented");
207: }
208:
209: public org.w3c.dom.Node renameNode(org.w3c.dom.Node oNode,
210: String sStr1, String sStr2) {
211: throw new UnsupportedOperationException(
212: "org.w3c.tidy.DOMDocumentTypeImpl renameNode() Not implemented");
213: }
214:
215: public String getBaseURI() {
216: throw new UnsupportedOperationException(
217: "org.w3c.tidy.DOMDocumentTypeImpl getBaseURI() Not implemented");
218: }
219:
220: public String getTextContent() {
221: throw new UnsupportedOperationException(
222: "org.w3c.tidy.DOMDocumentTypeImpl getTextContent() Not implemented");
223: }
224:
225: public void setTextContent(String sStr1) {
226: throw new UnsupportedOperationException(
227: "org.w3c.tidy.DOMDocumentTypeImpl setTextContent() Not implemented");
228: }
229: }
|