KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > tax > TreeComment


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.tax;
20
21 import org.netbeans.tax.spec.Document;
22 import org.netbeans.tax.spec.DocumentFragment;
23 import org.netbeans.tax.spec.Element;
24 import org.netbeans.tax.spec.GeneralEntityReference;
25 import org.netbeans.tax.spec.DTD;
26 import org.netbeans.tax.spec.ParameterEntityReference;
27 import org.netbeans.tax.spec.DocumentType;
28 import org.netbeans.tax.spec.ConditionalSection;
29
30 /**
31  *
32  * @author Libor Kramolis
33  * @version 0.1
34  */

35 public class TreeComment extends TreeData implements Document.Child, DocumentFragment.Child, Element.Child, GeneralEntityReference.Child, DTD.Child, ParameterEntityReference.Child, DocumentType.Child, ConditionalSection.Child {
36     
37     //
38
// init
39
//
40

41     /** Creates new TreeComment.
42      * @throws InvalidArgumentException
43      */

44     public TreeComment (String JavaDoc data) throws InvalidArgumentException {
45         super (data);
46     }
47     
48     /** Creates new TreeComment -- copy constructor. */
49     protected TreeComment (TreeComment comment) {
50         super (comment);
51     }
52     
53     
54     //
55
// from TreeObject
56
//
57

58     /**
59      */

60     public Object JavaDoc clone () {
61         return new TreeComment (this);
62     }
63     
64     /**
65      */

66     public boolean equals (Object JavaDoc object, boolean deep) {
67         if (!!! super.equals (object, deep))
68             return false;
69         return true;
70     }
71     
72     /*
73      * Checks instance and delegates to superclass.
74      */

75     public void merge (TreeObject treeObject) throws CannotMergeException {
76         super.merge (treeObject);
77     }
78     
79     
80     //
81
// from TreeData //??? what is this
82
//
83

84     /**
85      */

86     protected final void checkData (String JavaDoc data) throws InvalidArgumentException {
87         TreeUtilities.checkCommentData (data);
88     }
89     
90     /**
91      * @throws InvalidArgumentException
92      */

93     protected TreeData createData (String JavaDoc data) throws InvalidArgumentException {
94         return new TreeComment (data);
95     }
96     
97 }
98
Popular Tags