Package org.apache.maven.model.building
Class DefaultModelBuildingResult
java.lang.Object
org.apache.maven.model.building.DefaultModelBuildingResult
- All Implemented Interfaces:
ModelBuildingResult
@Deprecated(since="4.0.0")
class DefaultModelBuildingResult
extends Object
implements ModelBuildingResult
Deprecated.
Collects the output of the model builder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Deprecated.private Model
Deprecated.private Model
Deprecated.Deprecated.private List
<ModelProblem> Deprecated.Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionaddModelId
(String modelId) Deprecated.Deprecated.Gets the external profiles that were active during model building.getActivePomProfiles
(String modelId) Deprecated.Gets the profiles from the specified model that were active during model building.Deprecated.Gets the assembled model.Deprecated.Deprecated.Gets the sequence of model identifiers that denote the lineage of models from which the effective model was constructed.Deprecated.Gets the problems that were encountered during the model building.Deprecated.Gets the raw model as it was read from the input model source.getRawModel
(String modelId) Deprecated.Gets the specified raw model as it was read from a model source.setActiveExternalProfiles
(List<Profile> activeProfiles) Deprecated.setActivePomProfiles
(String modelId, List<Profile> activeProfiles) Deprecated.setEffectiveModel
(Model model) Deprecated.setFileModel
(Model fileModel) Deprecated.setProblems
(List<ModelProblem> problems) Deprecated.setRawModel
(String modelId, Model rawModel) Deprecated.
-
Field Details
-
fileModel
Deprecated. -
effectiveModel
Deprecated. -
modelIds
Deprecated. -
rawModels
Deprecated. -
activePomProfiles
Deprecated. -
activeExternalProfiles
Deprecated. -
problems
Deprecated.
-
-
Constructor Details
-
DefaultModelBuildingResult
DefaultModelBuildingResult()Deprecated. -
DefaultModelBuildingResult
DefaultModelBuildingResult(ModelBuildingResult result) Deprecated.
-
-
Method Details
-
getFileModel
Deprecated.- Specified by:
getFileModel
in interfaceModelBuildingResult
- Returns:
- the file model
-
setFileModel
Deprecated. -
getEffectiveModel
Deprecated.Description copied from interface:ModelBuildingResult
Gets the assembled model.- Specified by:
getEffectiveModel
in interfaceModelBuildingResult
- Returns:
- The assembled model, never
null
.
-
setEffectiveModel
Deprecated. -
getModelIds
Deprecated.Description copied from interface:ModelBuildingResult
Gets the sequence of model identifiers that denote the lineage of models from which the effective model was constructed. Model identifiers should be handled as "opaque strings" and this method should be used as source if navigating the linage. The first identifier from the list denotes the model on which the model builder was originally invoked. The last identifier will always be the super POM.- Specified by:
getModelIds
in interfaceModelBuildingResult
- Returns:
- The model identifiers from the lineage of models, never
null
.
-
addModelId
Deprecated. -
getRawModel
Deprecated.Description copied from interface:ModelBuildingResult
Gets the raw model as it was read from the input model source. Apart from basic validation, the raw model has not undergone any updates by the model builder, e.g. reflects neither inheritance nor interpolation.- Specified by:
getRawModel
in interfaceModelBuildingResult
- Returns:
- The raw model, never
null
.
-
getRawModel
Deprecated.Description copied from interface:ModelBuildingResult
Gets the specified raw model as it was read from a model source. Apart from basic validation, a raw model has not undergone any updates by the model builder, e.g. reflects neither inheritance nor interpolation. The model identifier should be from the collection obtained byModelBuildingResult.getModelIds()
.- Specified by:
getRawModel
in interfaceModelBuildingResult
- Parameters:
modelId
- The identifier of the desired raw model, must not benull
.- Returns:
- The raw model or
null
if the specified model id does not refer to a known model. - See Also:
-
setRawModel
Deprecated. -
getActivePomProfiles
Deprecated.Description copied from interface:ModelBuildingResult
Gets the profiles from the specified model that were active during model building. The model identifier should be from the collection obtained byModelBuildingResult.getModelIds()
.- Specified by:
getActivePomProfiles
in interfaceModelBuildingResult
- Parameters:
modelId
- The identifier of the model whose active profiles should be retrieved, must not benull
.- Returns:
- The active profiles of the model or an empty list if none or
null
if the specified model id does not refer to a known model. - See Also:
-
setActivePomProfiles
public DefaultModelBuildingResult setActivePomProfiles(String modelId, List<Profile> activeProfiles) Deprecated. -
getActiveExternalProfiles
Deprecated.Description copied from interface:ModelBuildingResult
Gets the external profiles that were active during model building. External profiles are those that were contributed byModelBuildingRequest.getProfiles()
.- Specified by:
getActiveExternalProfiles
in interfaceModelBuildingResult
- Returns:
- The active external profiles or an empty list if none, never
null
.
-
setActiveExternalProfiles
Deprecated. -
getProblems
Deprecated.Description copied from interface:ModelBuildingResult
Gets the problems that were encountered during the model building. Note that only problems of severityModelProblem.Severity.WARNING
and below are reported here. Problems with a higher severity level cause the model builder to fail with aModelBuildingException
.- Specified by:
getProblems
in interfaceModelBuildingResult
- Returns:
- The problems that were encountered during the model building, can be empty but never
null
.
-
setProblems
Deprecated.
-
ModelBuilder
instead