com.ibm.di.config.base
Class BranchConditionImpl

java.lang.Object
  extended by com.ibm.di.config.base.BaseConfigurationImpl
      extended by com.ibm.di.config.base.BranchConditionImpl
All Implemented Interfaces:
BaseConfiguration, BranchCondition, MetamergeConfigChangeListener, 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.BranchCondition
BRANCH_CONTAINS, BRANCH_ENDS_WITH, BRANCH_EQUALS, BRANCH_EXISTS, BRANCH_GT, BRANCH_GTE, BRANCH_HAS_VALUE, BRANCH_LT, BRANCH_LTE, BRANCH_STARTS_WITH
 
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
 
Constructor Summary
BranchConditionImpl()
          Default Constructor
BranchConditionImpl(Object data)
          Constructor.
 
Method Summary
 boolean getCaseSensitive()
          
 Object getClone()
          
 String getLeftHand()
          
 boolean getMatchAny()
          
 boolean getNegate()
          
 String getOperator()
          
 String getRightHand()
          
 void setCaseSensitive(boolean cs)
          Set whether the condition (e.g.
 void setLeftHand(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(String str)
          Set the operator of the conditional expression, e.g.
 void setRightHand(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, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getLongName, getMetamergeConfig, getModified, 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, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, 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, 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, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, 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, init, isExpression, isParameterLocal, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, 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, size, toEntry, updateInheritsFrom, willFlatten
 

Constructor Detail

BranchConditionImpl

public BranchConditionImpl()
Default Constructor


BranchConditionImpl

public BranchConditionImpl(Object data)
Constructor.

Parameters:
data - TreeMap of attribute/value pairs
Method Detail

getLeftHand

public String getLeftHand()

Specified by:
getLeftHand in interface BranchCondition
Returns:
The left-hand side of the conditional expression.

setLeftHand

public void setLeftHand(String str)
Set the left-hand side of the conditional expression.

Specified by:
setLeftHand in interface BranchCondition
Parameters:
str - The left-hand side of the conditional expression.

getOperator

public String getOperator()

Specified by:
getOperator in interface BranchCondition
Returns:
The operator of the conditional expression, e.g. BranchCondition.BRANCH_EQUALS.

setOperator

public void setOperator(String str)
Set the operator of the conditional expression, e.g. BranchCondition.BRANCH_EQUALS.

Specified by:
setOperator in interface BranchCondition
Parameters:
str - The name of the conditional operator.

getRightHand

public String getRightHand()

Specified by:
getRightHand in interface BranchCondition
Returns:
The right-hand side of the conditional expression.

setRightHand

public void setRightHand(String str)
Set the right-hand side of the conditional expression.

Specified by:
setRightHand in interface BranchCondition
Parameters:
str - The right-hand side of the conditional expression.

getCaseSensitive

public boolean getCaseSensitive()

Specified by:
getCaseSensitive in interface BranchCondition
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 interface BranchCondition
Parameters:
cs - Whether the condition is case sensitive.

getNegate

public boolean getNegate()

Specified by:
getNegate in interface BranchCondition
Returns:
Whether the condition is negated.

setNegate

public void setNegate(boolean negate)
Set whether the condition is negated.

Specified by:
setNegate in interface BranchCondition
Parameters:
negate - Whether the condition is negated.

getClone

public Object getClone()
                throws Exception

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

getMatchAny

public boolean getMatchAny()

Specified by:
getMatchAny in interface BranchCondition
Returns:
The match any flag.

setMatchAny

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

Specified by:
setMatchAny in interface BranchCondition
Parameters:
matchAny - The value of the match any flag.