@Named @Singleton public class DefaultModelValidator extends Object implements ModelValidator
Constructor and Description |
---|
DefaultModelValidator(ModelVersionProcessor versionProcessor) |
Modifier and Type | Method and Description |
---|---|
protected void |
validateDependencyVersion(ModelProblemCollector problems,
org.apache.maven.api.model.Dependency d,
String prefix) |
void |
validateEffectiveModel(Model ma,
ModelBuildingRequest request,
ModelProblemCollector problems)
Checks the specified (effective) model for missing or invalid values.
|
void |
validateFileModel(Model ma,
ModelBuildingRequest request,
ModelProblemCollector problems)
Checks the specified file model for missing or invalid values.
|
void |
validateRawModel(Model ma,
ModelBuildingRequest request,
ModelProblemCollector problems)
Checks the specified (raw) model for missing or invalid values.
|
@Inject public DefaultModelValidator(ModelVersionProcessor versionProcessor)
public void validateFileModel(Model ma, ModelBuildingRequest request, ModelProblemCollector problems)
ModelValidator
validateFileModel
in interface ModelValidator
ma
- The model to validate, 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 validateRawModel(Model ma, ModelBuildingRequest request, ModelProblemCollector problems)
ModelValidator
validateRawModel
in interface ModelValidator
ma
- The model to validate, 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 validateEffectiveModel(Model ma, ModelBuildingRequest request, ModelProblemCollector problems)
ModelValidator
validateEffectiveModel
in interface ModelValidator
ma
- The model to validate, 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
.protected void validateDependencyVersion(ModelProblemCollector problems, org.apache.maven.api.model.Dependency d, String prefix)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.