experimental jtidy version adapted for phpeclipse
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / tidy / DOMCDATASectionImpl.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/tidy/DOMCDATASectionImpl.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/tidy/DOMCDATASectionImpl.java
new file mode 100644 (file)
index 0000000..235888b
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * @(#)DOMCDATASectionImpl.java   1.11 2000/08/16
+ *
+ */
+
+package net.sourceforge.phpdt.tidy;
+
+import org.w3c.dom.DOMException;
+
+/**
+ *
+ * DOMCDATASectionImpl
+ *
+ * (c) 1998-2000 (W3C) MIT, INRIA, Keio University
+ * See Tidy.java for the copyright notice.
+ * Derived from <a href="http://www.w3.org/People/Raggett/tidy">
+ * HTML Tidy Release 4 Aug 2000</a>
+ *
+ * @author  Dave Raggett <dsr@w3.org>
+ * @author  Andy Quick <ac.quick@sympatico.ca> (translation to Java)
+ * @author  Gary L Peskin <garyp@firstech.com>
+ * @version 1.11, 2000/08/16 Tidy Release 4 Aug 2000
+ */
+
+public class DOMCDATASectionImpl extends DOMTextImpl
+                            implements org.w3c.dom.CDATASection {
+
+    protected DOMCDATASectionImpl(Node adaptee)
+    {
+        super(adaptee);
+    }
+
+
+    /* --------------------- DOM ---------------------------- */
+
+    /**
+     * @see org.w3c.dom.Node#getNodeName
+     */
+    public String getNodeName()
+    {
+        return "#cdata-section";
+    }
+
+    /**
+     * @see org.w3c.dom.Node#getNodeType
+     */
+    public short getNodeType()
+    {
+        return org.w3c.dom.Node.CDATA_SECTION_NODE;
+    }
+}