Class MappingStepSelector<S extends MappingStep>
- java.lang.Object
-
- com.orchestranetworks.addon.dint.mapping.steps.MappingStepSelector<S>
-
public abstract class MappingStepSelector<S extends MappingStep> extends java.lang.Object
Allows the selection of an exactMappingStep
in aTableMapping
.- Since:
- 4.5.0
-
-
Constructor Summary
Constructors Constructor Description MappingStepSelector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MappingStepSelector<TransformationMappingStep>
firstTransformation(java.util.function.Predicate<TransformationMappingStep> criteria)
Selects the first transformation step that meets the criteria.static MappingStepSelector<TransformationMappingStep>
firstTransformationByCode(java.lang.String code)
Selects the first transformation step that matches the specified code of the transformation definition.com.onwbp.base.text.UserMessage
getErrorMessageIfNotFound()
Returns the error message in case the mapping step is not found.boolean
isErrorThrownIfNotFound()
Returnstrue
if an error should be thrown in case the mapping step is not found.MappingStepSelector<S>
throwErrorIfNotFound()
Throws an error with the default message in case the mapping step is not found.MappingStepSelector<S>
throwErrorIfNotFound(com.onwbp.base.text.UserMessage errorMessage)
Throws an error with the specified message in case the mapping step is not found.MappingStepSelector<S>
throwErrorIfNotFound(java.lang.String errorMessage)
Throws an error with the specified message in case the mapping step is not found.
-
-
-
Method Detail
-
firstTransformationByCode
public static MappingStepSelector<TransformationMappingStep> firstTransformationByCode(java.lang.String code)
Selects the first transformation step that matches the specified code of the transformation definition.
-
firstTransformation
public static MappingStepSelector<TransformationMappingStep> firstTransformation(java.util.function.Predicate<TransformationMappingStep> criteria)
Selects the first transformation step that meets the criteria.
-
throwErrorIfNotFound
public final MappingStepSelector<S> throwErrorIfNotFound()
Throws an error with the default message in case the mapping step is not found.- See Also:
throwErrorIfNotFound(UserMessage)
-
throwErrorIfNotFound
public final MappingStepSelector<S> throwErrorIfNotFound(java.lang.String errorMessage)
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
.
-
-