Class MappingStepSelectorBuilder<S extends MappingStep>
- java.lang.Object
-
- com.orchestranetworks.addon.dint.mapping.steps.MappingStepSelectorBuilder<S>
-
- Type Parameters:
S
- The mapping step type.
public final class MappingStepSelectorBuilder<S extends MappingStep> extends java.lang.Object
Builds a complexMappingStepSelector
by traversing mapping steps in aTableMapping
.- Since:
- 4.5.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MappingStepSelectorBuilder<SourceFieldMappingStep>
fromField(java.util.function.Predicate<SourceFieldMappingStep> criteria)
Builds a selector from a source field step that meets the criteria.static MappingStepSelectorBuilder<TransformationMappingStep>
fromTransformation(java.util.function.Predicate<TransformationMappingStep> criteria)
Builds a selector from a transformation field step that meets the criteria.MappingStepSelectorBuilder<TargetFieldMappingStep>
nextTargetField(java.util.function.Predicate<TargetFieldMappingStep> criteria)
Moves to the next step if it is a target field that meets the criteria.MappingStepSelectorBuilder<TransformationMappingStep>
nextTransformation(java.util.function.Predicate<TransformationMappingStep> criteria)
Moves to the next step if it is a transformation that meets the criteria.MappingStepSelector<S>
select()
Selects the current step.MappingStepSelector<S>
selectIfNextTargetField(java.util.function.Predicate<TargetFieldMappingStep> criteria)
Selects the current step if the next step is a target field that meets the criteria.MappingStepSelector<S>
selectIfNextTransformation(java.util.function.Predicate<TransformationMappingStep> criteria)
Selects the current step if the next step is a transformation that meets the criteria.
-
-
-
Method Detail
-
fromField
public static MappingStepSelectorBuilder<SourceFieldMappingStep> fromField(java.util.function.Predicate<SourceFieldMappingStep> criteria)
Builds a selector from a source field step that meets the criteria.
-
fromTransformation
public static MappingStepSelectorBuilder<TransformationMappingStep> fromTransformation(java.util.function.Predicate<TransformationMappingStep> criteria)
Builds a selector from a transformation field step that meets the criteria.
-
nextTransformation
public final MappingStepSelectorBuilder<TransformationMappingStep> nextTransformation(java.util.function.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(java.util.function.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
public MappingStepSelector<S> select()
Selects the current step.
-
selectIfNextTransformation
public MappingStepSelector<S> selectIfNextTransformation(java.util.function.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
public MappingStepSelector<S> selectIfNextTargetField(java.util.function.Predicate<TargetFieldMappingStep> criteria)
Selects the current step if the next step is a target field that meets the criteria.- Parameters:
criteria
- Criteria to filter the next step.
-
-