Package com.ibm.di.config.base
Class BranchingConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.ContainerConfigImpl
-
- com.ibm.di.config.base.BranchingConfigImpl
-
- All Implemented Interfaces:
BaseConfiguration
,BranchingConfig
,ContainerConfig
,MetamergeConfigChangeListener
,java.io.Serializable
- Direct Known Subclasses:
LoopConfigImpl
public class BranchingConfigImpl extends ContainerConfigImpl implements BranchingConfig
Implements the configuration of a component used to branch the business logic- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ContainerConfig
conditions
A container with the conditions of the branch component.-
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.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
-
Fields inherited from interface com.ibm.di.config.interfaces.BranchingConfig
BRANCH_CASE, BRANCH_ELSE, BRANCH_ELSEIF, BRANCH_IF, BRANCH_SWITCH
-
-
Constructor Summary
Constructors Constructor Description BranchingConfigImpl()
Constructs a BranchingConfigImpl objectBranchingConfigImpl(java.lang.Object data)
Constructs a BranchingConfigImpl object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBranchType()
java.lang.Object
getClone()
ContainerConfig
getConditions()
boolean
getEnabled()
Gets the enabled attribute of this object.boolean
getMatchAny()
void
init()
Called after internal data structure is set.BranchCondition
newCondition()
int
numberLoops()
void
setBranchType(int type)
Sets the branch type (e.g.void
setConditions(ContainerConfig conditions)
Set the conditions of the branch component.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, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChildForPath, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getLongName, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseConfigListeners, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setUseConfigListeners, 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.BaseConfiguration
addListener, detachFromParent, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, toEntry, updateInheritsFrom, willFlatten
-
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
-
-
-
-
Field Detail
-
conditions
protected ContainerConfig conditions
A container with the conditions of the branch component.
-
-
Method Detail
-
getEnabled
public boolean getEnabled()
Gets the enabled attribute of this object.- Specified by:
getEnabled
in interfaceBaseConfiguration
- Overrides:
getEnabled
in classBaseConfigurationImpl
- 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 interfaceBranchingConfig
- Returns:
- total number of components in this Branch
-
numberLoops
public int numberLoops()
- Specified by:
numberLoops
in interfaceBranchingConfig
- 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()
Called after internal data structure is set.- Specified by:
init
in interfaceBaseConfiguration
- Overrides:
init
in classBaseConfigurationImpl
-
getConditions
public ContainerConfig getConditions()
- Specified by:
getConditions
in interfaceBranchingConfig
- Returns:
- The conditions container.
-
setConditions
public void setConditions(ContainerConfig conditions)
Set the conditions of the branch component.- Parameters:
conditions
- A container withBranchCondition
configurations.
-
newCondition
public BranchCondition newCondition()
- Specified by:
newCondition
in interfaceBranchingConfig
- Returns:
- A new populated condition config.
-
getMatchAny
public boolean getMatchAny()
- Specified by:
getMatchAny
in interfaceBranchingConfig
- Returns:
- The match any flag.
-
setMatchAny
public void setMatchAny(boolean matchAny)
Sets the match any flag.- Specified by:
setMatchAny
in interfaceBranchingConfig
- Parameters:
matchAny
- The value of the match any flag.
-
getBranchType
public int getBranchType()
- Specified by:
getBranchType
in interfaceBranchingConfig
- Returns:
- The branch type (e.g. BRANCH_IF, BRANCH_ELSEIF, BRANCH_ELSE, BRANCH_SWITCH, BRANCH_CASE) Returns BRANCH_IF if the parameter is not set.
-
setBranchType
public void setBranchType(int type)
Sets the branch type (e.g. BRANCH_IF, BRANCH_ELSEIF, BRANCH_ELSE, BRANCH_SWITCH, BRANCH_CASE).- Specified by:
setBranchType
in interfaceBranchingConfig
- Parameters:
type
- The type of the branch component.
-
getClone
public java.lang.Object getClone() throws java.lang.Exception
- Specified by:
getClone
in interfaceBaseConfiguration
- Overrides:
getClone
in classContainerConfigImpl
- Returns:
- a cloned version of this object.
- Throws:
java.lang.Exception
-
-