View Javadoc

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