com.ibm.di.config.base
Class BranchingConfigImpl

java.lang.Object
  extended by com.ibm.di.config.base.BaseConfigurationImpl
      extended by com.ibm.di.config.base.ContainerConfigImpl
          extended by com.ibm.di.config.base.BranchingConfigImpl
All Implemented Interfaces:
BaseConfiguration, BranchingConfig, ContainerConfig, MetamergeConfigChangeListener, Serializable
Direct Known Subclasses:
LoopConfigImpl

public class BranchingConfigImpl
extends ContainerConfigImpl
implements BranchingConfig

Represents the configuration of a container component that could branch the business logic

See Also:
Serialized Form

Field Summary
protected  ContainerConfig conditions
           
 
Fields inherited from class com.ibm.di.config.base.ContainerConfigImpl
items
 
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl
NAME
 
Fields inherited from interface com.ibm.di.config.interfaces.BranchingConfig
BRANCH_CASE, BRANCH_ELSE, BRANCH_ELSEIF, BRANCH_IF, BRANCH_SWITCH
 
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
BranchingConfigImpl()
          Constructs a BranchingConfigImpl object
BranchingConfigImpl(Object data)
          Constructs a BranchingConfigImpl object
 
Method Summary
 int getBranchType()
          Returns the branch type (e.g.
 Object getClone()
          Returns a self clone
 ContainerConfig getConditions()
          Returns the conditions container
 boolean getEnabled()
          Gets the enabled attribute of the BaseConfiguration object
 boolean getMatchAny()
          Returns the match any flag.
 void init()
          This method is called after internal data structure is set
 BranchCondition newCondition()
          Returns a new populated condition config
 int numberLoops()
          Returns the total number of LoopConfig items in this Branch and its child branches or loops.
 void setBranchType(int type)
          Sets the branch type (e.g.
 void setConditions(ContainerConfig conditions)
           
 void setMatchAny(boolean matchAny)
          Sets the match any flag.
 int totalSize()
          Returns the total number of components in this Branch.
 
Methods inherited from class com.ibm.di.config.base.ContainerConfigImpl
addConfig, containsConfig, getChild, getChildNames, getConfig, getConfig, getConfig, getConfigurations, getInheritedConfigurations, indexOf, indexOf, insertConfig, moveConfig, moveConfig, moveConfig, removeConfig, removeConfig, removeConfig, setupInheritanceChain, size
 
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChildForPath, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isParameterLocal, nameForChild, notifyChange, notifyChange, performNotifyChange, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setUseListeners, setUserComment, toEntry, toString, updateInheritsFrom, willExpandProps, willFlatten, willUseInherited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.di.config.interfaces.ContainerConfig
addConfig, containsConfig, getConfig, getConfig, getConfig, getConfigurations, getInheritedConfigurations, indexOf, indexOf, insertConfig, moveConfig, moveConfig, moveConfig, removeConfig, removeConfig, removeConfig, size
 
Methods inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
addListener, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isParameterLocal, nameForChild, notifyChange, notifyChange, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, toEntry, updateInheritsFrom, willFlatten
 

Field Detail

conditions

protected ContainerConfig conditions
Constructor Detail

BranchingConfigImpl

public BranchingConfigImpl()
Constructs a BranchingConfigImpl object


BranchingConfigImpl

public BranchingConfigImpl(Object data)
Constructs a BranchingConfigImpl object

Parameters:
data - TreeMap with config data
Method Detail

getEnabled

public boolean getEnabled()
Description copied from interface: BaseConfiguration
Gets the enabled attribute of the BaseConfiguration object

Specified by:
getEnabled in interface BaseConfiguration
Overrides:
getEnabled in class BaseConfigurationImpl
Returns:
The nullBehaviorValue value

totalSize

public int totalSize()
Returns the total number of components in this Branch. This includes all components plus components in sub branches.

Specified by:
totalSize in interface BranchingConfig
Returns:
total number of components in this Branch

numberLoops

public int numberLoops()
Description copied from interface: BranchingConfig
Returns the total number of LoopConfig items in this Branch and its child branches or loops. In TDI 6.1, this now includes BranchingConfig as well since they add the EndBranch component to the AL.

Specified by:
numberLoops in interface BranchingConfig
Returns:
The total number of LoopConfig items in this Branch and its child branches/loops. Since BranchingConfig also add an extra invisible EndBranch component we also count these.

init

public void init()
This method is called after internal data structure is set

Specified by:
init in interface BaseConfiguration
Overrides:
init in class ContainerConfigImpl

getConditions

public ContainerConfig getConditions()
Returns the conditions container

Specified by:
getConditions in interface BranchingConfig

setConditions

public void setConditions(ContainerConfig conditions)

newCondition

public BranchCondition newCondition()
Returns a new populated condition config

Specified by:
newCondition in interface BranchingConfig

getMatchAny

public boolean getMatchAny()
Returns the match any flag.

Specified by:
getMatchAny in interface BranchingConfig

setMatchAny

public void setMatchAny(boolean matchAny)
Sets the match any flag.

Specified by:
setMatchAny in interface BranchingConfig

getBranchType

public int getBranchType()
Returns the branch type (e.g. BRANCH_IF, BRANCH_ELSEIF, BRANCH_ELSE)

Specified by:
getBranchType in interface BranchingConfig

setBranchType

public void setBranchType(int type)
Sets the branch type (e.g. BRANCH_IF, BRANCH_ELSEIF, BRANCH_ELSE)

Specified by:
setBranchType in interface BranchingConfig

getClone

public Object getClone()
                throws Exception
Returns a self clone

Specified by:
getClone in interface BaseConfiguration
Overrides:
getClone in class BaseConfigurationImpl
Returns:
A cloned object of this
Throws:
Exception