1 package org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel; 2 3 import org.apache.ojb.broker.metadata.DescriptorRepository; 4 import org.apache.ojb.broker.metadata.IndexDescriptor; 5 6 public class OjbMetaIndexDescriptorNode extends OjbMetaTreeNode 7 { 8 private static java.util.ArrayList supportedActions = new java.util.ArrayList (); 9 10 private IndexDescriptor indexDescriptor; 11 25 public OjbMetaIndexDescriptorNode( 26 DescriptorRepository pRepository, 27 OjbMetaDataTreeModel pTreeModel, 28 OjbMetaTreeNode pparent, 29 IndexDescriptor pIndexDescriptor) 30 { 31 super(pRepository, pTreeModel, pparent); 32 this.indexDescriptor = pIndexDescriptor; 33 } 34 35 38 protected boolean _load() 39 { 40 return true; 41 } 42 43 46 public boolean isLeaf() 47 { 48 return false; 49 } 50 51 54 public boolean getAllowsChildren() 55 { 56 return false; 57 } 58 59 62 public void setAttribute(String strKey, Object value) 63 { 64 } 65 66 69 public Object getAttribute(String strKey) 70 { 71 return null; 72 } 73 74 77 public Class getPropertyEditorClass() 78 { 79 return null; 80 } 81 82 public String toString() 83 { 84 return "IndexDescriptor: " +indexDescriptor.getName(); 85 } 86 87 90 public java.util.Iterator getActions() 91 { 92 return supportedActions.iterator(); 93 } 94 95 98 public boolean actionListCachable() 99 { 100 return true; 101 } 102 103 public boolean actionListStatic() 104 { 105 return true; 106 } 107 108 113 public Object getAssociatedDescriptor() 114 { 115 return indexDescriptor; 116 } 117 118 } 119 120 | Popular Tags |