FileDocCategorySizeDatePackage
ConfigPropertyMetaDataContainer.javaAPI DocJBoss 4.2.12355Fri Jul 13 21:01:18 BST 2007org.jboss.resource.metadata

ConfigPropertyMetaDataContainer

public class ConfigPropertyMetaDataContainer extends Object implements Serializable
An abstract class for meta data that have config properties
author
Adrian Brock
version
$Revision: 57189 $

Fields Summary
static final long
serialVersionUID
private HashSet
properties
The properties by name
Constructors Summary
Methods Summary
public voidaddProperty(ConfigPropertyMetaData cpmd)
Add a property

param
cpmd the property

   
               
      
   
      properties.add(cpmd);
   
public java.util.CollectiongetProperties()
Get the properties

return
the properties

      return properties;
   
public ConfigPropertyMetaDatagetProperty(java.lang.String name)
Get the property for a name

param
name the name
return
the property or null if there is no property with that name

      for (Iterator i = properties.iterator(); i.hasNext();)
      {
         ConfigPropertyMetaData cpmd = (ConfigPropertyMetaData) i.next();
         if (cpmd.getName().equals(name))
            return cpmd;
      }
      return null;