Class MappingStepSelectorBuilder<S extends MappingStep>
java.lang.Object
com.orchestranetworks.addon.dint.mapping.steps.MappingStepSelectorBuilder<S>
- Type Parameters:
S
- The mapping step type.
Builds a complex
MappingStepSelector
by traversing mapping steps in a TableMapping
.- Since:
- 4.5.0
-
Method Summary
Modifier and TypeMethodDescriptionfromField
(Predicate<SourceFieldMappingStep> criteria) Builds a selector from a source field step that meets the criteria.fromTransformation
(Predicate<TransformationMappingStep> criteria) Builds a selector from a transformation field step that meets the criteria.nextTargetField
(Predicate<TargetFieldMappingStep> criteria) Moves to the next step if it is a target field that meets the criteria.nextTransformation
(Predicate<TransformationMappingStep> criteria) Moves to the next step if it is a transformation that meets the criteria.select()
Selects the current step.Selects the current step if the next step is a target field that meets the criteria.Selects the current step if the next step is a transformation that meets the criteria.
-
Method Details
-
fromField
public static MappingStepSelectorBuilder<SourceFieldMappingStep> fromField(Predicate<SourceFieldMappingStep> criteria) Builds a selector from a source field step that meets the criteria. -
fromTransformation
public static MappingStepSelectorBuilder<TransformationMappingStep> fromTransformation(Predicate<TransformationMappingStep> criteria) Builds a selector from a transformation field step that meets the criteria. -
nextTransformation
public final MappingStepSelectorBuilder<TransformationMappingStep> nextTransformation(Predicate<TransformationMappingStep> criteria) Moves to the next step if it is a transformation that meets the criteria.- Parameters:
criteria
- Criteria to filter the next step.
-
nextTargetField
public final MappingStepSelectorBuilder<TargetFieldMappingStep> nextTargetField(Predicate<TargetFieldMappingStep> criteria) Moves to the next step if it is a target field that meets the criteria.- Parameters:
criteria
- Criteria to filter the next step.
-
select
Selects the current step. -
selectIfNextTransformation
public MappingStepSelector<S> selectIfNextTransformation(Predicate<TransformationMappingStep> criteria) Selects the current step if the next step is a transformation that meets the criteria.- Parameters:
criteria
- Criteria to filter the next step.
-
selectIfNextTargetField
Selects the current step if the next step is a target field that meets the criteria.- Parameters:
criteria
- Criteria to filter the next step.
-