|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContainerConfig
A Container containing BaseConfiguration objects.
Field Summary |
---|
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 |
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 a BaseConfiguration with the provided name can be found. |
BaseConfiguration |
getConfig(int index)
This method returns the configuration object at index |
BaseConfiguration |
getConfig(java.lang.String name)
Returns the BaseConfiguration with the specified name in this container. |
BaseConfiguration |
getConfig(java.lang.String name,
boolean recursive)
Returns the BaseConfiguration with the specified name traversing child objects of type ContainerConfig if recursive is true. |
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 BaseConfiguration items from this object and inherited containers |
int |
indexOf(BaseConfiguration config)
Returns the index of the BaseConfiguration |
int |
indexOf(java.lang.String name)
Returns the index of the BaseConfiguration |
int |
insertConfig(BaseConfiguration config,
int position)
This method inesrts a configuration object at the specified index |
boolean |
moveConfig(BaseConfiguration config,
boolean up)
Moves a BaseConfiguration one position up or down |
int |
moveConfig(BaseConfiguration config,
int position)
Moves a BaseConfiguration to a new position |
boolean |
moveConfig(int position,
boolean up)
Moves a BaseConfiguration one position up or down |
boolean |
removeConfig(BaseConfiguration config)
Removes a component 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 named configuration object from the container or its subcontainers |
int |
size()
This method returns the number of BaseConfiguration objects in the container |
Method Detail |
---|
int size()
size
in interface BaseConfiguration
int indexOf(BaseConfiguration config)
config
- component BaseConfigurationint indexOf(java.lang.String name)
name
- component BaseConfiguration name to lookupjava.util.List<BaseConfiguration> getInheritedConfigurations(java.util.List<BaseConfiguration> list)
list
- If not null, BaseConfiguration items are added to this list
java.util.List<BaseConfiguration> getConfigurations(java.util.List<BaseConfiguration> list)
list
- If not null, config items are added to this list
BaseConfiguration getConfig(int index)
index
- The configuration objectBaseConfiguration getConfig(java.lang.String name, boolean recursive)
name
- The config's namerecursive
- Traverse child ContainerConfigs if true
BaseConfiguration getConfig(java.lang.String name)
name
- The config's name
int addConfig(BaseConfiguration config)
config
- The configuration object
int insertConfig(BaseConfiguration config, int position)
config
- The configuration objectposition
- Position of the new object
BaseConfiguration removeConfig(int index)
index
- Index of the configuration objectboolean removeConfig(BaseConfiguration config)
config
- component configboolean removeConfig(java.lang.String name, boolean recursive)
name
- Name of the configuration objectrecursive
- True if child containers should be searchedboolean moveConfig(int position, boolean up)
position
- Current connector positionup
- Up (true) or down (false)
boolean moveConfig(BaseConfiguration config, boolean up)
config
- The BaseConfiguration to moveup
- Up (true) or down (false)
int moveConfig(BaseConfiguration config, int position)
config
- Component BaseConfigurationposition
- New position
boolean containsConfig(java.lang.String name, boolean recursive)
name
- The name of the BaseConfiguration itemrecursive
- If true, a tree walk will be performed when checking for the
name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |