Class CiModelInterpolator
java.lang.Object
org.codehaus.mojo.flatten.cifriendly.CiModelInterpolator
- All Implemented Interfaces:
CiInterpolator
Based on StringSearchModelInterpolator in maven-model-builder.
-
Constructor Summary
ConstructorsConstructorDescriptionCiModelInterpolator
(PathTranslator pathTranslator, UrlNormalizer urlNormalizer) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.codehaus.plexus.interpolation.Interpolator
protected List
<? extends org.codehaus.plexus.interpolation.InterpolationPostProcessor> createPostProcessors
(Model model, File projectDir, ModelBuildingRequest config) protected List
<org.codehaus.plexus.interpolation.ValueSource> createValueSources
(Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) protected final org.codehaus.plexus.interpolation.Interpolator
protected org.codehaus.plexus.interpolation.RecursionInterceptor
protected String
interpolateInternal
(String src, List<? extends org.codehaus.plexus.interpolation.ValueSource> valueSources, List<? extends org.codehaus.plexus.interpolation.InterpolationPostProcessor> postProcessors, ModelProblemCollector problems) interpolateModel
(Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) Interpolates expressions in the specified model.protected void
interpolateObject
(Object obj, Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) protected void
setRecursionInterceptor
(org.codehaus.plexus.interpolation.RecursionInterceptor recursionInterceptor)
-
Constructor Details
-
CiModelInterpolator
-
-
Method Details
-
interpolateModel
public Model interpolateModel(Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) Description copied from interface:CiInterpolator
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.- Specified by:
interpolateModel
in interfaceCiInterpolator
- 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.config
- 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
.
-
interpolateObject
protected void interpolateObject(Object obj, Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) -
interpolateInternal
protected String interpolateInternal(String src, List<? extends org.codehaus.plexus.interpolation.ValueSource> valueSources, List<? extends org.codehaus.plexus.interpolation.InterpolationPostProcessor> postProcessors, ModelProblemCollector problems) -
createInterpolator
protected org.codehaus.plexus.interpolation.Interpolator createInterpolator() -
createValueSources
protected List<org.codehaus.plexus.interpolation.ValueSource> createValueSources(Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) -
createPostProcessors
protected List<? extends org.codehaus.plexus.interpolation.InterpolationPostProcessor> createPostProcessors(Model model, File projectDir, ModelBuildingRequest config) -
getRecursionInterceptor
protected org.codehaus.plexus.interpolation.RecursionInterceptor getRecursionInterceptor() -
setRecursionInterceptor
protected void setRecursionInterceptor(org.codehaus.plexus.interpolation.RecursionInterceptor recursionInterceptor) -
getInterpolator
protected final org.codehaus.plexus.interpolation.Interpolator getInterpolator()
-