Interface ModelInterpolator
- All Known Implementing Classes:
AbstractStringBasedModelInterpolator
,StringVisitorModelInterpolator
public interface ModelInterpolator
Replaces expressions of the form
${token}
with their effective values. Effective values are basically
calculated from the elements of the model itself and the execution properties from the building request.-
Method Summary
Modifier and TypeMethodDescriptioninterpolateModel
(Model model, File projectDir, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.interpolateModel
(Model model, Path projectDir, ModelBuildingRequest request, ModelProblemCollector problems) interpolateModel
(Model model, File projectDir, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.interpolateModel
(Model model, Path projectDir, ModelBuildingRequest request, ModelProblemCollector problems) Interpolates expressions in the specified model.
-
Method Details
-
interpolateModel
@Deprecated Model interpolateModel(Model model, File projectDir, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Interpolates expressions in the specified model. Note that implementations are free to either interpolate the provided model directly or to create a clone of the model and interpolate the clone. Callers should always use the returned model and must not rely on the input model being updated.- Parameters:
model
- The model to interpolate, must not benull
.projectDir
- The project directory, may benull
if the model does not belong to a local project but to some artifact's metadata.request
- The model building request that holds further settings, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.- Returns:
- The interpolated model, never
null
.
-
interpolateModel
@Deprecated Model interpolateModel(Model model, File projectDir, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated. -
interpolateModel
Model interpolateModel(Model model, Path projectDir, ModelBuildingRequest request, ModelProblemCollector problems) Interpolates expressions in the specified model. Note that implementations are free to either interpolate the provided model directly or to create a clone of the model and interpolate the clone. Callers should always use the returned model and must not rely on the input model being updated.- Parameters:
model
- The model to interpolate, must not benull
.projectDir
- The project directory, may benull
if the model does not belong to a local project but to some artifact's metadata.request
- The model building request that holds further settings, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.- Returns:
- The interpolated model, never
null
. - Since:
- 4.0.0
-
interpolateModel
Model interpolateModel(Model model, Path projectDir, ModelBuildingRequest request, ModelProblemCollector problems) - Since:
- 4.0.0
-
interpolateModel(Model, Path, ModelBuildingRequest, ModelProblemCollector)
instead.