1 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 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 41 44 public TreeComment (String data) throws InvalidArgumentException { 45 super (data); 46 } 47 48 49 protected TreeComment (TreeComment comment) { 50 super (comment); 51 } 52 53 54 58 60 public Object clone () { 61 return new TreeComment (this); 62 } 63 64 66 public boolean equals (Object object, boolean deep) { 67 if (!!! super.equals (object, deep)) 68 return false; 69 return true; 70 } 71 72 75 public void merge (TreeObject treeObject) throws CannotMergeException { 76 super.merge (treeObject); 77 } 78 79 80 84 86 protected final void checkData (String data) throws InvalidArgumentException { 87 TreeUtilities.checkCommentData (data); 88 } 89 90 93 protected TreeData createData (String data) throws InvalidArgumentException { 94 return new TreeComment (data); 95 } 96 97 } 98 | Popular Tags |