public class SplitterComponent extends DefaultDelegate
DefaultDelegate.DefaultAttributeDelegate, DefaultDelegate.DefaultConnectorPointDelegate
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENT_TYPE_NAME
The component type name for this component.
|
static java.lang.String |
PROPKEY_SPLITTER_CONDITION
Property key name for the splitter condition property.
|
VARIABLE_COMPONENT_TYPE_NAME
Constructor and Description |
---|
SplitterComponent(MapComponentOwner owner,
java.lang.String name)
Constructs a new persistent splitter component.
|
Modifier and Type | Method and Description |
---|---|
MapExpression |
getRemainderExpression()
Returns a SQL expression that represents the remainder of all the expressions
based on the output connector points of this splitter component.
|
MapExpression |
getSplitterCondition(MapConnectorPoint outputConnectorPoint)
Returns the SPLITTER_CONDITION property value for a specific output connector point.
|
boolean |
isNullSplitterCondition(MapConnectorPoint outputConnectorPoint)
Checks if the specific output connector point is null.
|
boolean |
isRemainder(MapConnectorPoint outputConnectorPoint)
Checks if the specific output connector point is set as the remainder.
|
boolean |
isValidForTechnology(ITechnology techno,
java.util.List issues) |
void |
setRemainder(MapConnectorPoint outputConnectorPoint,
boolean pIsRemainder)
Updates the IsRemainder indicator for the given
MapConnectorPoint . |
void |
setSplitterCondition(MapConnectorPoint outputConnectorPoint,
java.lang.String condition)
Sets the SPLITTER_CONDITION property text value for a specific output connector point.
|
void |
setSplitterCondition(MapConnectorPoint outputConnectorPoint,
java.lang.String condition,
boolean doValidate)
Sets the SPLITTER_CONDITION property text value for a specific output connector point.
|
customInvalidateExpressions, customSyncComponent, getBlockExpressionReferencedAttributes, getBlockExpressionReferencedAttributesWithPath, getExecuteOnHint, getExecuteOnHintString, getIntegrationType, getNextAvailableInput, getNextAvailableInput, getNextAvailableOutput, isAddInputConnectorPointAllowed, isAddOutputConnectorPointAllowed, isPassive, setExecuteOnHint, setExecuteOnHintByString
public static final java.lang.String COMPONENT_TYPE_NAME
public static final java.lang.String PROPKEY_SPLITTER_CONDITION
public SplitterComponent(MapComponentOwner owner, java.lang.String name) throws MappingException, AdapterException
owner
- the component owner that will own the new splitter component.name
- the name for the new component.MappingException
AdapterException
public MapExpression getSplitterCondition(MapConnectorPoint outputConnectorPoint) throws PropertyException
outputConnectorPoint
- the output connector point related to the splitter conditionPropertyException
public void setSplitterCondition(MapConnectorPoint outputConnectorPoint, java.lang.String condition) throws MappingException
outputConnectorPoint
- the output connector point related to the splitter conditioncondition
- the expression text for the splitter conditionMappingException
public void setSplitterCondition(MapConnectorPoint outputConnectorPoint, java.lang.String condition, boolean doValidate) throws MappingException
outputConnectorPoint
- the output connector point related to the splitter conditioncondition
- the expression text for the splitter conditiondoValidate
- true to validate the componentMappingException
public MapExpression getRemainderExpression() throws MappingException
MappingException
public boolean isRemainder(MapConnectorPoint outputConnectorPoint) throws PropertyException
outputConnectorPoint
- the specific output connector point owned by the splitter componenttrue
if the output connector point is set as the remainder; false
otherwiseMappingException
PropertyException
java.lang.IllegalArgumentException
public boolean isNullSplitterCondition(MapConnectorPoint outputConnectorPoint) throws PropertyException
outputConnectorPoint
- the specific output connector point owned by the splitter componenttrue
if the output connector point is null; false
otherwisePropertyException
public void setRemainder(MapConnectorPoint outputConnectorPoint, boolean pIsRemainder) throws MappingException
MapConnectorPoint
. There can be only zero or one remainder.outputConnectorPoint
- the map connector point to updatepIsRemainder
- the indicator valueMappingException
IllegalArgumentExpcetion
public boolean isValidForTechnology(ITechnology techno, java.util.List issues) throws MappingException
isValidForTechnology
in class DefaultDelegate
MappingException