| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.config.base.BaseConfigurationImpl
com.ibm.di.config.base.ContainerConfigImpl
public class ContainerConfigImpl
Implements a Container containing BaseConfiguration objects.
| Field Summary | |
|---|---|
protected  java.util.Vector<BaseConfiguration> | 
items
Collection of config objects in the container  | 
| Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl | 
|---|
NAME | 
| Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration | 
|---|
CHILD_PATH_SEPARATOR, DISABLE_EXTPROPS, DISABLE_INHERITANCE, INHERIT_NONE, INHERIT_PARENT, ONE_LEVEL, RECURSIVE, RECURSIVE_ONELEVEL, RECURSIVE_SUBTREE, SEARCH_EXACTCASE, SEARCH_ONELEVEL, SEARCH_PARAMNAME, SEARCH_PARAMNAME_RE, SEARCH_PROPERTY, SEARCH_REGEX, SEARCH_SUBSTRING, SUBTREE | 
| Constructor Summary | |
|---|---|
ContainerConfigImpl()
Constructor for the ContainerConfigImpl object  | 
|
ContainerConfigImpl(java.lang.Object data)
Constructor for the ContainerConfigImpl object  | 
|
| Method Summary | |
|---|---|
 int | 
addConfig(BaseConfiguration config)
This method adds a configuration object to the container  | 
 boolean | 
containsConfig(java.lang.String name,
               boolean recursive)
Returns true if there is a config having the provided name.  | 
 BaseConfiguration | 
getChild(java.lang.Object name)
 | 
 java.util.List<java.lang.String> | 
getChildNames()
Returns a list of names for all child configuration object  | 
 java.lang.Object | 
getClone()
 | 
 BaseConfiguration | 
getConfig(int index)
This method returns the configuration object, which is at position index  | 
 BaseConfiguration | 
getConfig(java.lang.String name)
Returns the config with the specified name  | 
 BaseConfiguration | 
getConfig(java.lang.String name,
          boolean recursive)
Returns the config with the specified name  | 
 java.util.List<BaseConfiguration> | 
getConfigurations(java.util.List<BaseConfiguration> list)
Returns a flattened list of the entire tree of config items.  | 
 java.util.List<BaseConfiguration> | 
getInheritedConfigurations(java.util.List<BaseConfiguration> list)
Returns a list of config items from this object and inherited containers  | 
 int | 
indexOf(BaseConfiguration config)
Returns the position of a configuration object in a container  | 
 int | 
indexOf(java.lang.String name)
Returns the index of the config  | 
 int | 
insertConfig(BaseConfiguration config,
             int position)
This method inesrts a configuration object at the specified index  | 
 boolean | 
moveConfig(BaseConfiguration config,
           boolean up)
Moves a config one position up or down  | 
 int | 
moveConfig(BaseConfiguration config,
           int position)
Moves a config from one position to another  | 
 boolean | 
moveConfig(int position,
           boolean up)
Moves a connector one position up or down  | 
 boolean | 
removeConfig(BaseConfiguration config)
This method removes a configuration object from the container  | 
 BaseConfiguration | 
removeConfig(int index)
This method removes a configuration object from the container  | 
 boolean | 
removeConfig(java.lang.String name,
             boolean recursive)
This method removes a configuration object from the container  | 
 void | 
setupInheritanceChain()
Established the inheritance chain for this object.  | 
 int | 
size()
This method returns the number of config objects in the container  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected java.util.Vector<BaseConfiguration> items
| Constructor Detail | 
|---|
public ContainerConfigImpl()
public ContainerConfigImpl(java.lang.Object data)
data - TreeMap of attribute/value pairs| Method Detail | 
|---|
public int size()
size in interface BaseConfigurationsize in interface ContainerConfigsize in class BaseConfigurationImplpublic java.util.List<BaseConfiguration> getInheritedConfigurations(java.util.List<BaseConfiguration> list)
getInheritedConfigurations in interface ContainerConfiglist - If not null, BaseConfiguration items are added to this list
public java.util.List<BaseConfiguration> getConfigurations(java.util.List<BaseConfiguration> list)
getConfigurations in interface ContainerConfiglist - If not null, config items are added to this list
public int indexOf(BaseConfiguration config)
indexOf in interface ContainerConfigconfig - Configuration object in the container
public int indexOf(java.lang.String name)
indexOf in interface ContainerConfigname - The name of the configuration object
public BaseConfiguration getConfig(int index)
getConfig in interface ContainerConfigindex - The position of the configuration object
public BaseConfiguration getConfig(java.lang.String name)
getConfig in interface ContainerConfigname - The config's name
public BaseConfiguration getConfig(java.lang.String name,
                                   boolean recursive)
getConfig in interface ContainerConfigname - The config's namerecursive - If true, searches through all the components in a container
public int addConfig(BaseConfiguration config)
addConfig in interface ContainerConfigconfig - The configuration object
public int insertConfig(BaseConfiguration config,
                        int position)
insertConfig in interface ContainerConfigconfig - The configuration objectposition - Position of the new object
public BaseConfiguration removeConfig(int index)
removeConfig in interface ContainerConfigindex - Index of the configuration object
public boolean removeConfig(BaseConfiguration config)
removeConfig in interface ContainerConfigconfig - The configuration object to remove
public boolean removeConfig(java.lang.String name,
                            boolean recursive)
removeConfig in interface ContainerConfigname - The name of the configuration to removerecursive - If true, searches through all the components in a container
public boolean moveConfig(int position,
                          boolean up)
moveConfig in interface ContainerConfigposition - Current connector positionup - Up (true) or down (false)
public boolean moveConfig(BaseConfiguration config,
                          boolean up)
moveConfig in interface ContainerConfigup - Up (true) or down (false)config - The configuration object to move.
public int moveConfig(BaseConfiguration config,
                      int position)
moveConfig in interface ContainerConfigposition - New positionconfig - The configuration object to move
public boolean containsConfig(java.lang.String name,
                              boolean recursive)
containsConfig in interface ContainerConfigname - The name of the config itemrecursive - If true, a tree walk will be performed when checking for the
            name
public BaseConfiguration getChild(java.lang.Object name)
BaseConfigurationImpl
getChild in interface BaseConfigurationgetChild in class BaseConfigurationImplname - The name of the configuration object
public java.util.List<java.lang.String> getChildNames()
BaseConfigurationImpl
getChildNames in interface BaseConfigurationgetChildNames in class BaseConfigurationImpl
public void setupInheritanceChain()
                           throws java.lang.Exception
BaseConfigurationImpl
setupInheritanceChain in interface BaseConfigurationsetupInheritanceChain in class BaseConfigurationImpljava.lang.Exception - if the operation could not be performed
public java.lang.Object getClone()
                          throws java.lang.Exception
BaseConfigurationImpl
getClone in interface BaseConfigurationgetClone in class BaseConfigurationImpljava.lang.Exception
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||