1 package net.sf.mmapps.modules.config; 2 3 /*** 4 * representation of a list of fields 5 * @author Kees Jongenburger 6 * @version $Id: FieldConfigurations.java,v 1.1.1.1 2004/02/06 08:44:03 keesj Exp $ 7 */ 8 public class FieldConfigurations extends java.util.Vector { 9 10 /*** Creates a new instance of FieldConfigurations */ 11 public FieldConfigurations() { 12 } 13 14 public FieldConfiguration getFieldConfiguration(int index){ 15 return (FieldConfiguration)get(index); 16 } 17 18 public FieldConfiguration getFieldConfiguration(String name){ 19 for (int x =0 ; x < size() ; x++){ 20 FieldConfiguration conf = getFieldConfiguration(x); 21 if (conf.getName().equals(name)){ 22 return conf; 23 } 24 } 25 return null; 26 } 27 }