1 22 package org.jboss.resource.metadata; 23 24 import java.io.Serializable ; 25 import java.util.Collection ; 26 import java.util.HashSet ; 27 import java.util.Iterator ; 28 29 35 public class ConfigPropertyMetaDataContainer implements Serializable 36 { 37 static final long serialVersionUID = 2891949219806920844L; 38 39 40 private HashSet properties = new HashSet (); 41 42 47 public void addProperty(ConfigPropertyMetaData cpmd) 48 { 49 properties.add(cpmd); 50 } 51 52 57 public Collection getProperties() 58 { 59 return properties; 60 } 61 62 68 public ConfigPropertyMetaData getProperty(String name) 69 { 70 for (Iterator i = properties.iterator(); i.hasNext();) 71 { 72 ConfigPropertyMetaData cpmd = (ConfigPropertyMetaData) i.next(); 73 if (cpmd.getName().equals(name)) 74 return cpmd; 75 } 76 return null; 77 } 78 } 79 | Popular Tags |