Interface ModelTransformer


@Experimental public interface ModelTransformer
A model transformer.
Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.api.model.Model
    transform(org.apache.maven.api.model.Model model, ModelBuilderRequest request, ModelProblemCollector problems)
    Apply a transformation on the file model.
  • Method Details

    • transform

      @Nonnull org.apache.maven.api.model.Model transform(@Nonnull org.apache.maven.api.model.Model model, @Nonnull ModelBuilderRequest request, @Nonnull ModelProblemCollector problems)
      Apply a transformation on the file model.
      Parameters:
      model - the input model
      problems - the problem collector to report any issues encountered during transformation
      Returns:
      the transformed model, or the input model if no transformation is needed