1 19 package org.netbeans.tax; 20 21 import org.netbeans.tax.spec.ParameterEntityReference; 22 import org.netbeans.tax.spec.DocumentType; 23 import org.netbeans.tax.spec.DTD; 24 import org.netbeans.tax.spec.ConditionalSection; 25 26 31 public class TreeParameterEntityReference extends TreeEntityReference implements DocumentType.Child, DTD.Child, ParameterEntityReference.Child, ConditionalSection.Child { 32 33 37 40 public TreeParameterEntityReference (String name) throws InvalidArgumentException { 41 super (name); 42 } 43 44 45 46 protected TreeParameterEntityReference (TreeParameterEntityReference parameterEntityReference, boolean deep) { 47 super (parameterEntityReference, deep); 48 } 49 50 51 55 57 public Object clone (boolean deep) { 58 return new TreeParameterEntityReference (this, deep); 59 } 60 61 63 public boolean equals (Object object, boolean deep) { 64 if (!!! super.equals (object, deep)) 65 return false; 66 return true; 67 } 68 69 72 public void merge (TreeObject treeObject) throws CannotMergeException { 73 super.merge (treeObject); 74 } 75 76 77 81 83 protected final void checkName (String name) throws InvalidArgumentException { 84 TreeUtilities.checkParameterEntityReferenceName (name); 85 } 86 87 88 92 94 protected TreeObjectList.ContentManager createChildListContentManager () { 95 return new ChildListContentManager (); 96 } 97 98 99 102 protected class ChildListContentManager extends TreeEntityReference.ChildListContentManager { 103 104 106 public TreeNode getOwnerNode () { 107 return TreeParameterEntityReference.this; 108 } 109 110 112 public void checkAssignableObject (Object obj) { 113 super.checkAssignableObject (obj); 114 checkAssignableClass (ParameterEntityReference.Child.class, obj); 115 } 116 117 } 119 } 120 | Popular Tags |