2 * @(#)DOMDocumentTypeImpl.java 1.11 2000/08/16
6 package net.sourceforge.phpdt.tidy;
13 * (c) 1998-2000 (W3C) MIT, INRIA, Keio University
14 * See Tidy.java for the copyright notice.
15 * Derived from <a href="http://www.w3.org/People/Raggett/tidy">
16 * HTML Tidy Release 4 Aug 2000</a>
18 * @author Dave Raggett <dsr@w3.org>
19 * @author Andy Quick <ac.quick@sympatico.ca> (translation to Java)
20 * @version 1.7, 1999/12/06 Tidy Release 30 Nov 1999
21 * @version 1.8, 2000/01/22 Tidy Release 13 Jan 2000
22 * @version 1.9, 2000/06/03 Tidy Release 30 Apr 2000
23 * @version 1.10, 2000/07/22 Tidy Release 8 Jul 2000
24 * @version 1.11, 2000/08/16 Tidy Release 4 Aug 2000
27 public class DOMDocumentTypeImpl extends DOMNodeImpl
28 implements org.w3c.dom.DocumentType {
30 protected DOMDocumentTypeImpl(Node adaptee)
36 /* --------------------- DOM ---------------------------- */
39 * @see org.w3c.dom.Node#getNodeType
41 public short getNodeType()
43 return org.w3c.dom.Node.DOCUMENT_TYPE_NODE;
47 * @see org.w3c.dom.Node#getNodeName
49 public String getNodeName()
55 * @see org.w3c.dom.DocumentType#getName
57 public String getName()
60 if (adaptee.type == Node.DocTypeTag)
63 if (adaptee.textarray != null && adaptee.start < adaptee.end)
65 value = Lexer.getString(adaptee.textarray,
67 adaptee.end - adaptee.start);
73 public org.w3c.dom.NamedNodeMap getEntities()
79 public org.w3c.dom.NamedNodeMap getNotations()
86 * DOM2 - not implemented.
88 public String getPublicId() {
93 * DOM2 - not implemented.
95 public String getSystemId() {
100 * DOM2 - not implemented.
102 public String getInternalSubset() {