1 19 20 package org.netbeans.tax; 21 22 import org.netbeans.tax.spec.DTD; 23 24 25 29 public class TreeDTDFragment extends TreeDocumentFragment { 30 34 public TreeDTDFragment() throws InvalidArgumentException { 35 super(); 36 } 37 38 39 protected TreeDTDFragment (TreeDTDFragment documentFragment, boolean deep) { 40 super (documentFragment, deep); 41 } 42 43 44 48 50 public Object clone (boolean deep) { 51 return new TreeDTDFragment (this, deep); 52 } 53 54 56 protected TreeObjectList.ContentManager createChildListContentManager() { 57 return new ExternalDTDContentManager(); 58 } 59 60 65 protected class ExternalDTDContentManager extends TreeParentNode.ChildListContentManager { 66 67 69 public TreeNode getOwnerNode () { 70 return TreeDTDFragment.this; 71 } 72 73 75 public void checkAssignableObject (Object obj) { 76 super.checkAssignableObject (obj); 77 checkAssignableClass (DTD.Child.class, obj); 78 } 79 80 } 81 82 } 83 | Popular Tags |