|
|||||||||||
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 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(Object data)
Constructor for the ContainerConfigImpl object |
Method Summary | |
---|---|
int |
addConfig(BaseConfiguration config)
This method adds a configuration object to the container |
boolean |
containsConfig(String name,
boolean recursive)
Returns true if there is a config having the provided name. |
BaseConfiguration |
getChild(Object name)
|
List<String> |
getChildNames()
Returns a list of names for all child configuration object |
Object |
getClone()
|
BaseConfiguration |
getConfig(int index)
This method returns the configuration object, which is at position index |
BaseConfiguration |
getConfig(String name)
Returns the config with the specified name |
BaseConfiguration |
getConfig(String name,
boolean recursive)
Returns the config with the specified name |
List<BaseConfiguration> |
getConfigurations(List<BaseConfiguration> list)
Returns a flattened list of the entire tree of config items. |
List<BaseConfiguration> |
getInheritedConfigurations(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(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(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 Vector<BaseConfiguration> items
Constructor Detail |
---|
public ContainerConfigImpl()
public ContainerConfigImpl(Object data)
data
- TreeMap of attribute/value pairsMethod Detail |
---|
public int size()
size
in interface BaseConfiguration
size
in interface ContainerConfig
size
in class BaseConfigurationImpl
public List<BaseConfiguration> getInheritedConfigurations(List<BaseConfiguration> list)
getInheritedConfigurations
in interface ContainerConfig
list
- If not null, BaseConfiguration items are added to this list
public List<BaseConfiguration> getConfigurations(List<BaseConfiguration> list)
getConfigurations
in interface ContainerConfig
list
- If not null, config items are added to this list
public int indexOf(BaseConfiguration config)
indexOf
in interface ContainerConfig
config
- Configuration object in the container
public int indexOf(String name)
indexOf
in interface ContainerConfig
name
- The name of the configuration object
public BaseConfiguration getConfig(int index)
getConfig
in interface ContainerConfig
index
- The position of the configuration object
public BaseConfiguration getConfig(String name)
getConfig
in interface ContainerConfig
name
- The config's name
public BaseConfiguration getConfig(String name, boolean recursive)
getConfig
in interface ContainerConfig
name
- The config's namerecursive
- If true, searches through all the components in a container
public int addConfig(BaseConfiguration config)
addConfig
in interface ContainerConfig
config
- The configuration object
public int insertConfig(BaseConfiguration config, int position)
insertConfig
in interface ContainerConfig
config
- The configuration objectposition
- Position of the new object
public BaseConfiguration removeConfig(int index)
removeConfig
in interface ContainerConfig
index
- Index of the configuration object
public boolean removeConfig(BaseConfiguration config)
removeConfig
in interface ContainerConfig
config
- The configuration object to remove
public boolean removeConfig(String name, boolean recursive)
removeConfig
in interface ContainerConfig
name
- 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 ContainerConfig
position
- Current connector positionup
- Up (true) or down (false)
public boolean moveConfig(BaseConfiguration config, boolean up)
moveConfig
in interface ContainerConfig
up
- Up (true) or down (false)config
- The configuration object to move.
public int moveConfig(BaseConfiguration config, int position)
moveConfig
in interface ContainerConfig
position
- New positionconfig
- The configuration object to move
public boolean containsConfig(String name, boolean recursive)
containsConfig
in interface ContainerConfig
name
- The name of the config itemrecursive
- If true, a tree walk will be performed when checking for the
name
public BaseConfiguration getChild(Object name)
BaseConfigurationImpl
getChild
in interface BaseConfiguration
getChild
in class BaseConfigurationImpl
name
- The name of the configuration object
public List<String> getChildNames()
BaseConfigurationImpl
getChildNames
in interface BaseConfiguration
getChildNames
in class BaseConfigurationImpl
public void setupInheritanceChain() throws Exception
BaseConfigurationImpl
setupInheritanceChain
in interface BaseConfiguration
setupInheritanceChain
in class BaseConfigurationImpl
Exception
- if the operation could not be performedpublic Object getClone() throws Exception
BaseConfigurationImpl
getClone
in interface BaseConfiguration
getClone
in class BaseConfigurationImpl
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |