1 19 20 21 package org.netbeans.modules.j2ee.deployment.impl; 22 23 import org.netbeans.modules.j2ee.deployment.impl.gen.nbd.*; 24 import java.util.*; 25 26 public class ConfigBeanDescriptor { 27 28 final ConfigBean bean; 29 Map map; 30 31 public ConfigBeanDescriptor(ConfigBean bean) { 32 this.bean = bean; 33 } 34 35 public String getHelpId() { 36 return bean.getHelpid(); 37 } 38 39 public String getHelpId(String property) { 40 if(map == null) { 41 map = new HashMap(); 42 PropertyDescrip[] descriptors = bean.getPropertyDescrip(); 43 for(int i = 0; i < descriptors.length; i++) 44 map.put(descriptors[i].getPropertyName(),descriptors[i].getHelpid()); 45 } 46 return (String ) map.get(property); 47 } 48 49 } 50 | Popular Tags |