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 TreeGeneralEntityReference extends TreeEntityReference implements DocumentFragment.Child, Element.Child, GeneralEntityReference.Child, Attribute.Value { 32 33 37 40 public TreeGeneralEntityReference (String name) throws InvalidArgumentException { 41 super (name); 42 } 43 44 45 protected TreeGeneralEntityReference (TreeGeneralEntityReference generalEntityReference, boolean deep) { 46 super (generalEntityReference, deep); 47 } 48 49 50 54 56 public Object clone (boolean deep) { 57 return new TreeGeneralEntityReference (this, deep); 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 76 80 82 protected final void checkName (String name) throws InvalidArgumentException { 83 TreeUtilities.checkGeneralEntityReferenceName (name); 84 } 85 86 87 91 93 protected TreeObjectList.ContentManager createChildListContentManager () { 94 return new ChildListContentManager (); 95 } 96 97 98 101 protected class ChildListContentManager extends TreeEntityReference.ChildListContentManager { 102 103 105 public TreeNode getOwnerNode () { 106 return TreeGeneralEntityReference.this; 107 } 108 109 111 public void checkAssignableObject (Object obj) { 112 super.checkAssignableObject (obj); 113 checkAssignableClass (GeneralEntityReference.Child.class, obj); 114 } 115 116 } 118 } 119 | Popular Tags |