context.arch.util
Class ConfigObjects

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended bycontext.arch.util.ConfigObjects
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ConfigObjects
extends java.util.Hashtable

This class maintains a list of configuration objects.

See Also:
ConfigObject, Serialized Form

Field Summary
static java.lang.String HOSTNAME
          Tag for component hostname
static java.lang.String ID
          Tag for component id
static java.lang.String PORT
          Tag for component port
static java.lang.String TYPE
          Tag for component type
 
Constructor Summary
ConfigObjects()
          Basic empty constructor
ConfigObjects(DataObject data)
          Constructor that creates a ConfigObjects object from a DataObject.
 
Method Summary
 void addConfigObject(ConfigObject obj)
          Adds a configuration object to the list
 ConfigObject getConfigObject(java.lang.String id)
          Retrieves a configuation object from the component list
 java.util.Enumeration getEnumeration()
          Returns an enumeration of the configuration objects
 ConfigObjects getObjectsType(java.lang.String type)
          Returns a list of all the configuration objects with the given type
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
Tag for component id

See Also:
Constant Field Values

HOSTNAME

public static final java.lang.String HOSTNAME
Tag for component hostname

See Also:
Constant Field Values

PORT

public static final java.lang.String PORT
Tag for component port

See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
Tag for component type

See Also:
Constant Field Values
Constructor Detail

ConfigObjects

public ConfigObjects()
Basic empty constructor


ConfigObjects

public ConfigObjects(DataObject data)
Constructor that creates a ConfigObjects object from a DataObject.

Parameters:
data - DataObject containing configuration information
Method Detail

addConfigObject

public void addConfigObject(ConfigObject obj)
Adds a configuration object to the list

Parameters:
obj - Configuration object to add

getConfigObject

public ConfigObject getConfigObject(java.lang.String id)
Retrieves a configuation object from the component list

Parameters:
id - Id to use to retrieve the configuration object
Returns:
ConfigObject object with the corresponding id

getEnumeration

public java.util.Enumeration getEnumeration()
Returns an enumeration of the configuration objects

Returns:
Enumeration of the configuration objects

getObjectsType

public ConfigObjects getObjectsType(java.lang.String type)
Returns a list of all the configuration objects with the given type

Parameters:
type - Type of configuration object to match
Returns:
ConfigObjects object containing objects with the given type