Interface ModelValidator
- All Known Implementing Classes:
DefaultModelValidator
Deprecated.
Checks the model for missing or invalid values.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validateEffectiveModel
(Model model, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified (effective) model for missing or invalid values.default void
validateExternalProfiles
(List<Profile> activeExternalProfiles, Model model, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified (raw) model for clashes with the passed active external profiles.default void
validateFileModel
(Model model, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified file model for missing or invalid values.void
validateRawModel
(Model model, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified (raw) model for missing or invalid values.
-
Method Details
-
validateFileModel
default void validateFileModel(Model model, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified file model for missing or invalid values. This model is directly created from the POM file and has not been subjected to inheritance, interpolation or profile/default injection.- Parameters:
model
- The model to validate, must not benull
.request
- The model building request that holds further settings, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.
-
validateRawModel
Deprecated.Checks the specified (raw) model for missing or invalid values. The raw model is the file model + buildpom filter transformation and has not been subjected to inheritance, interpolation or profile/default injection.- Parameters:
model
- The model to validate, must not benull
.request
- The model building request that holds further settings, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.
-
validateExternalProfiles
default void validateExternalProfiles(List<Profile> activeExternalProfiles, Model model, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified (raw) model for clashes with the passed active external profiles. The raw model is the file model + buildpom filter transformation and has not been subjected to inheritance, interpolation or profile/default injection.- Parameters:
activeExternalProfiles
- the active profiles coming from external sources (settings.xml), must not benull
model
- The model to validate, must not benull
.request
- The model building request that holds further settings, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.- Since:
- 4.0.0
-
validateEffectiveModel
void validateEffectiveModel(Model model, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified (effective) model for missing or invalid values. The effective model is fully assembled and has undergone inheritance, interpolation and other model operations.- Parameters:
model
- The model to validate, must not benull
.request
- The model building request that holds further settings, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.
-
ModelBuilder
instead