コード例 #1
0
 public void init(Feature[] defs) {
   for (int i = 0; i < defs.length; i++) definitions.put(defs[i].getID(), defs[i]);
 }
コード例 #2
0
 public String getDescriptionForID(String id) {
   Feature x = (Feature) definitions.get(id);
   if (x != null) return x.getDescription();
   else return "?";
 }
コード例 #3
0
 public void addDefinition(Feature definition) {
   definitions.put(definition.getID(), definition);
 }
コード例 #4
0
 public Feature buildFeature(String id) {
   Feature x = (Feature) definitions.get(id);
   if (x != null) return (Feature) x.clone();
   Debug.byebye("Feature " + id + " not found");
   return null;
 }