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.FieldDescriptor; 5 6 public class OjbMetaFieldDescriptorNode extends OjbMetaTreeNode 7 { 8 9 private static java.util.ArrayList supportedActions = new java.util.ArrayList (); 10 11 private FieldDescriptor fieldDescriptor; 12 26 public OjbMetaFieldDescriptorNode( 27 DescriptorRepository pRepository, 28 OjbMetaDataTreeModel pTreeModel, 29 OjbMetaTreeNode pparent, 30 FieldDescriptor pFieldDescriptor) 31 { 32 super(pRepository, pTreeModel, pparent); 33 this.fieldDescriptor = pFieldDescriptor; 34 } 35 36 39 protected boolean _load() 40 { 41 return true; 42 } 43 44 47 public boolean isLeaf() 48 { 49 return false; 50 } 51 52 55 public boolean getAllowsChildren() 56 { 57 return false; 58 } 59 60 63 public void setAttribute(String strKey, Object value) 64 { 65 } 66 67 70 public Object getAttribute(String strKey) 71 { 72 return null; 73 } 74 75 78 public Class getPropertyEditorClass() 79 { 80 return null; 81 } 82 83 public String toString() 84 { 85 return "FieldDescriptor: " + fieldDescriptor.getAttributeName(); 86 } 87 88 91 public java.util.Iterator getActions() 92 { 93 return supportedActions.iterator(); 94 } 95 96 99 public boolean actionListCachable() 100 { 101 return true; 102 } 103 104 public boolean actionListStatic() 105 { 106 return true; 107 } 108 109 114 public Object getAssociatedDescriptor() 115 { 116 return fieldDescriptor; 117 } 118 119 } 120 121 | Popular Tags |