|
||||||||||
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
Contains the basic methods for configuration of the container components
Field Summary | |
---|---|
protected Vector |
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 |
---|
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, 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)
Named children support |
List |
getChildNames()
Returns a list of names for all child configuration object |
BaseConfiguration |
getConfig(int index)
This method returns the configuration object, which 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 |
getConfigurations(List list)
Returns a flattened list of the entire tree of config items. |
List |
getInheritedConfigurations(List 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 |
void |
init()
Initialize internal data structure. |
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 items
Constructor Detail |
---|
public ContainerConfigImpl()
public ContainerConfigImpl(Object data)
data
- TreeMap of attribute/value pairsMethod Detail |
---|
public void init()
init
in interface BaseConfiguration
init
in class BaseConfigurationImpl
public int size()
size
in interface BaseConfiguration
size
in interface ContainerConfig
size
in class BaseConfigurationImpl
public List getInheritedConfigurations(List list)
getInheritedConfigurations
in interface ContainerConfig
list
- If not null, config items are added to this list
public List getConfigurations(List 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 objectpublic List getChildNames()
BaseConfiguration
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 does not succeed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |