Interface ModelInterpolator

All Known Implementing Classes:
DefaultModelInterpolator

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 Type
    Method
    Description
    org.apache.maven.api.model.Model
    interpolateModel(org.apache.maven.api.model.Model model, Path projectDir, org.apache.maven.api.services.ModelBuilderRequest request, org.apache.maven.api.services.ModelProblemCollector problems)
    Interpolates expressions in the specified model.
  • Method Details

    • interpolateModel

      @Nonnull org.apache.maven.api.model.Model interpolateModel(@Nonnull org.apache.maven.api.model.Model model, @Nullable Path projectDir, @Nonnull org.apache.maven.api.services.ModelBuilderRequest request, @Nonnull org.apache.maven.api.services.ModelProblemCollector problems)
      Interpolates expressions in the specified model.
      Parameters:
      model - The model to interpolate, must not be null.
      projectDir - The project directory, may be null 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 be null.
      problems - The container used to collect problems that were encountered, must not be null.
      Returns:
      The interpolated model, never null.
      Since:
      4.0.0