changed .classpath to relative PATH ECLIPSE_HOME
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / tidy / DOMDocumentTypeImpl.java
1 /*
2  * @(#)DOMDocumentTypeImpl.java   1.11 2000/08/16
3  *
4  */
5
6 package net.sourceforge.phpdt.tidy;
7
8
9 /**
10  *
11  * DOMDocumentTypeImpl
12  *
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>
17  *
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
25  */
26
27 public class DOMDocumentTypeImpl extends DOMNodeImpl
28                             implements org.w3c.dom.DocumentType {
29
30     protected DOMDocumentTypeImpl(Node adaptee)
31     {
32         super(adaptee);
33     }
34
35
36     /* --------------------- DOM ---------------------------- */
37
38     /**
39      * @see org.w3c.dom.Node#getNodeType
40      */
41     public short getNodeType()
42     {
43         return org.w3c.dom.Node.DOCUMENT_TYPE_NODE;
44     }
45
46     /**
47      * @see org.w3c.dom.Node#getNodeName
48      */
49     public String getNodeName()
50     {
51         return getName();
52     }
53
54     /**
55      * @see org.w3c.dom.DocumentType#getName
56      */
57     public String             getName()
58     {
59         String value = null;
60         if (adaptee.type == Node.DocTypeTag)
61         {
62
63             if (adaptee.textarray != null && adaptee.start < adaptee.end)
64             {
65                 value = Lexer.getString(adaptee.textarray,
66                                         adaptee.start,
67                                         adaptee.end - adaptee.start);
68             }
69         }
70         return value;
71     }
72
73     public org.w3c.dom.NamedNodeMap       getEntities()
74     {
75         // NOT SUPPORTED
76         return null;
77     }
78
79     public org.w3c.dom.NamedNodeMap       getNotations()
80     {
81         // NOT SUPPORTED
82         return null;
83     }
84
85     /**
86      * DOM2 - not implemented.
87      */
88     public String getPublicId() {
89         return null;
90     }
91
92     /**
93      * DOM2 - not implemented.
94      */
95     public String getSystemId() {
96         return null;
97     }
98
99     /**
100      * DOM2 - not implemented.
101      */
102     public String getInternalSubset() {
103         return null;
104     }
105
106 }