1 package net.sf.mmapps.modules.config; 2 3 import java.util.*; 4 /*** 5 * 6 * @author Kees Jongenburger 7 * @version $Id: RelationTypes.java,v 1.1.1.1 2004/02/06 08:44:05 keesj Exp $ 8 */ 9 public class RelationTypes extends Vector{ 10 11 /*** Creates a new instance of RelationTypes */ 12 public RelationTypes() { 13 super(); 14 } 15 public RelationType getRelationType(int index){ 16 return (RelationType)get(index); 17 } 18 19 public RelationType getRelationType(String name){ 20 Iterator iter = iterator(); 21 while(iter.hasNext()){ 22 RelationType relationType = (RelationType)iter.next(); 23 if (relationType.getName().equals(name)){ 24 return relationType; 25 } 26 } 27 return null; 28 } 29 }