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 25 30 public class TreeCDATASection extends TreeData implements TreeCharacterData, DocumentFragment.Child, Element.Child, GeneralEntityReference.Child { 31 32 36 39 public TreeCDATASection (String data) throws InvalidArgumentException { 40 super (data); 41 } 42 43 44 protected TreeCDATASection (TreeCDATASection cdataSection) { 45 super (cdataSection); 46 } 47 48 49 53 55 public Object clone () { 56 return new TreeCDATASection (this); 57 } 58 59 61 public boolean equals (Object object, boolean deep) { 62 if (!!! super.equals (object, deep)) 63 return false; 64 return true; 65 } 66 67 70 public void merge (TreeObject treeObject) throws CannotMergeException { 71 super.merge (treeObject); 72 } 73 74 78 80 protected final void checkData (String data) throws InvalidArgumentException { 81 TreeUtilities.checkCDATASectionData (data); 82 } 83 84 87 protected TreeData createData (String data) throws InvalidArgumentException { 88 return new TreeCDATASection (data); 89 } 90 91 } 92 | Popular Tags |