1 19 package org.netbeans.tax; 20 21 import org.netbeans.tax.spec.DocumentFragment; 22 import org.netbeans.tax.spec.Element; 23 import org.netbeans.tax.spec.GeneralEntityReference; 24 import org.netbeans.tax.spec.Attribute; 25 26 31 public class TreeText extends TreeData implements TreeCharacterData, DocumentFragment.Child, Element.Child, GeneralEntityReference.Child, Attribute.Value { 32 33 37 40 public TreeText (String data) throws InvalidArgumentException { 41 super (data); 42 } 43 44 45 protected TreeText (TreeText text) { 46 super (text); 47 } 48 49 50 54 56 public Object clone () { 57 return new TreeText (this); 58 } 59 60 62 public boolean equals (Object object, boolean deep) { 63 if (!!! super.equals (object, deep)) 64 return false; 65 return true; 66 } 67 68 71 public void merge (TreeObject treeObject) throws CannotMergeException { 72 super.merge (treeObject); 73 } 74 75 79 81 protected final void checkData (String data) throws InvalidArgumentException { 82 TreeUtilities.checkTextData (data); 83 } 84 85 88 protected final TreeData createData (String data) throws InvalidArgumentException { 89 return new TreeText (data); 90 } 91 92 } 93 | Popular Tags |