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