@Component(role=ModelNormalizer.class) public class DefaultModelNormalizer extends Object implements ModelNormalizer
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultModelNormalizer.DuplicateMerger
DuplicateMerger
|
Constructor and Description |
---|
DefaultModelNormalizer() |
Modifier and Type | Method and Description |
---|---|
void |
injectDefaultValues(Model model,
ModelBuildingRequest request,
ModelProblemCollector problems)
Sets default values in the specified model that for technical reasons cannot be set directly in the Modello
definition.
|
void |
mergeDuplicates(Model model,
ModelBuildingRequest request,
ModelProblemCollector problems)
Merges duplicate elements like multiple declarations of the same build plugin in the specified model.
|
public void mergeDuplicates(Model model, ModelBuildingRequest request, ModelProblemCollector problems)
ModelNormalizer
mergeDuplicates
in interface ModelNormalizer
model
- The model whose duplicate elements should be merged, must not be null
.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
.public void injectDefaultValues(Model model, ModelBuildingRequest request, ModelProblemCollector problems)
ModelNormalizer
injectDefaultValues
in interface ModelNormalizer
model
- The model in which to set the default values, must not be null
.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
.Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.