Class MappingStepSelector<S extends MappingStep>
java.lang.Object
com.orchestranetworks.addon.dint.mapping.steps.MappingStepSelector<S>
Allows the selection of an exact
MappingStep
in a TableMapping
.- Since:
- 4.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSelects the first transformation step that meets the criteria.Selects the first transformation step that matches the specified code of the transformation definition.final com.onwbp.base.text.UserMessage
Returns the error message in case the mapping step is not found.final boolean
Returnstrue
if an error should be thrown in case the mapping step is not found.final MappingStepSelector<S>
Throws an error with the default message in case the mapping step is not found.final MappingStepSelector<S>
throwErrorIfNotFound
(com.onwbp.base.text.UserMessage errorMessage) Throws an error with the specified message in case the mapping step is not found.final MappingStepSelector<S>
throwErrorIfNotFound
(String errorMessage) Throws an error with the specified message in case the mapping step is not found.
-
Constructor Details
-
MappingStepSelector
public MappingStepSelector()
-
-
Method Details
-
firstTransformationByCode
Selects the first transformation step that matches the specified code of the transformation definition. -
firstTransformation
public static MappingStepSelector<TransformationMappingStep> firstTransformation(Predicate<TransformationMappingStep> criteria) Selects the first transformation step that meets the criteria. -
throwErrorIfNotFound
Throws an error with the default message in case the mapping step is not found.- See Also:
-
throwErrorIfNotFound
Throws an error with the specified message in case the mapping step is not found. -
throwErrorIfNotFound
public final MappingStepSelector<S> throwErrorIfNotFound(com.onwbp.base.text.UserMessage errorMessage) Throws an error with the specified message in case the mapping step is not found. -
isErrorThrownIfNotFound
public final boolean isErrorThrownIfNotFound()Returnstrue
if an error should be thrown in case the mapping step is not found.Returns
false
by default. -
getErrorMessageIfNotFound
public final com.onwbp.base.text.UserMessage getErrorMessageIfNotFound()Returns the error message in case the mapping step is not found.Only applied if
isErrorThrownIfNotFound()
returnstrue
.
-