Package com.ibm.di.config.base
Class BranchConditionImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.BranchConditionImpl
-
- All Implemented Interfaces:
BaseConfiguration
,BranchCondition
,MetamergeConfigChangeListener
,java.io.Serializable
public class BranchConditionImpl extends BaseConfigurationImpl implements BranchCondition
Implementation of the configuration for a single condition in a BranchingConfig.- See Also:
- Serialized Form
-
-
Field Summary
-
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.BranchCondition
BRANCH_CONTAINS, BRANCH_ENDS_WITH, BRANCH_EQUALS, BRANCH_EXISTS, BRANCH_GT, BRANCH_GTE, BRANCH_HAS_VALUE, BRANCH_LT, BRANCH_LTE, BRANCH_STARTS_WITH
-
-
Constructor Summary
Constructors Constructor Description BranchConditionImpl()
Default ConstructorBranchConditionImpl(java.lang.Object data)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getCaseSensitive()
java.lang.String
getLeftHand()
boolean
getMatchAny()
boolean
getNegate()
java.lang.String
getOperator()
java.lang.String
getRightHand()
void
setCaseSensitive(boolean cs)
Set whether the condition (e.g.void
setLeftHand(java.lang.String str)
Set the left-hand side of the conditional expression.void
setMatchAny(boolean matchAny)
Sets the match any flag.void
setNegate(boolean negate)
Set whether the condition is negated.void
setOperator(java.lang.String str)
Set the operator of the conditional expression, e.g.void
setRightHand(java.lang.String str)
Set the right-hand side of the conditional expression.-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, 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, init, 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, setupInheritanceChain, setUseConfigListeners, setUseListeners, setUserComment, size, 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, getClone, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, 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, init, 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, size, toEntry, updateInheritsFrom, willFlatten
-
-
-
-
Method Detail
-
getLeftHand
public java.lang.String getLeftHand()
- Specified by:
getLeftHand
in interfaceBranchCondition
- Returns:
- The left-hand side of the conditional expression.
-
setLeftHand
public void setLeftHand(java.lang.String str)
Set the left-hand side of the conditional expression.- Specified by:
setLeftHand
in interfaceBranchCondition
- Parameters:
str
- The left-hand side of the conditional expression.
-
getOperator
public java.lang.String getOperator()
- Specified by:
getOperator
in interfaceBranchCondition
- Returns:
- The operator of the conditional expression, e.g.
BranchCondition.BRANCH_EQUALS
.
-
setOperator
public void setOperator(java.lang.String str)
Set the operator of the conditional expression, e.g.BranchCondition.BRANCH_EQUALS
.- Specified by:
setOperator
in interfaceBranchCondition
- Parameters:
str
- The name of the conditional operator.
-
getRightHand
public java.lang.String getRightHand()
- Specified by:
getRightHand
in interfaceBranchCondition
- Returns:
- The right-hand side of the conditional expression.
-
setRightHand
public void setRightHand(java.lang.String str)
Set the right-hand side of the conditional expression.- Specified by:
setRightHand
in interfaceBranchCondition
- Parameters:
str
- The right-hand side of the conditional expression.
-
getCaseSensitive
public boolean getCaseSensitive()
- Specified by:
getCaseSensitive
in interfaceBranchCondition
- Returns:
- The case sensitivity flag.
-
setCaseSensitive
public void setCaseSensitive(boolean cs)
Set whether the condition (e.g. equality) is case sensitive.- Specified by:
setCaseSensitive
in interfaceBranchCondition
- Parameters:
cs
- Whether the condition is case sensitive.
-
getNegate
public boolean getNegate()
- Specified by:
getNegate
in interfaceBranchCondition
- Returns:
- Whether the condition is negated.
-
setNegate
public void setNegate(boolean negate)
Set whether the condition is negated.- Specified by:
setNegate
in interfaceBranchCondition
- Parameters:
negate
- Whether the condition is negated.
-
getMatchAny
public boolean getMatchAny()
- Specified by:
getMatchAny
in interfaceBranchCondition
- Returns:
- The match any flag.
-
setMatchAny
public void setMatchAny(boolean matchAny)
Sets the match any flag.- Specified by:
setMatchAny
in interfaceBranchCondition
- Parameters:
matchAny
- The value of the match any flag.
-
-