class DefaultModelBuildingResult extends java.lang.Object implements ModelBuildingResult
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Profile> |
activeExternalProfiles |
private java.util.Map<java.lang.String,java.util.List<Profile>> |
activePomProfiles |
private Model |
effectiveModel |
private java.util.List<java.lang.String> |
modelIds |
private java.util.List<ModelProblem> |
problems |
private java.util.Map<java.lang.String,Model> |
rawModels |
| Constructor and Description |
|---|
DefaultModelBuildingResult() |
| Modifier and Type | Method and Description |
|---|---|
DefaultModelBuildingResult |
addModelId(java.lang.String modelId) |
java.util.List<Profile> |
getActiveExternalProfiles()
Gets the external profiles that were active during model building.
|
java.util.List<Profile> |
getActivePomProfiles(java.lang.String modelId)
Gets the profiles from the specified model that were active during model building.
|
Model |
getEffectiveModel()
Gets the assembled model.
|
java.util.List<java.lang.String> |
getModelIds()
Gets the sequence of model identifiers that denote the lineage of models from which the effective model was
constructed.
|
java.util.List<ModelProblem> |
getProblems()
Gets the problems that were encountered during the model building.
|
Model |
getRawModel()
Gets the raw model as it was read from the input model source.
|
Model |
getRawModel(java.lang.String modelId)
Gets the specified raw model as it was read from a model source.
|
DefaultModelBuildingResult |
setActiveExternalProfiles(java.util.List<Profile> activeProfiles) |
DefaultModelBuildingResult |
setActivePomProfiles(java.lang.String modelId,
java.util.List<Profile> activeProfiles) |
DefaultModelBuildingResult |
setEffectiveModel(Model model) |
DefaultModelBuildingResult |
setProblems(java.util.List<ModelProblem> problems) |
DefaultModelBuildingResult |
setRawModel(java.lang.String modelId,
Model rawModel) |
private Model effectiveModel
private java.util.List<java.lang.String> modelIds
private java.util.Map<java.lang.String,Model> rawModels
private java.util.Map<java.lang.String,java.util.List<Profile>> activePomProfiles
private java.util.List<Profile> activeExternalProfiles
private java.util.List<ModelProblem> problems
public Model getEffectiveModel()
ModelBuildingResultgetEffectiveModel in interface ModelBuildingResultnull.public DefaultModelBuildingResult setEffectiveModel(Model model)
public java.util.List<java.lang.String> getModelIds()
ModelBuildingResult<groupId>:<artifactId>:<version>. The first identifier from
the list denotes the model on which the model builder was originally invoked. The last identifier will always be
an empty string that by definition denotes the super POM.getModelIds in interface ModelBuildingResultnull.public DefaultModelBuildingResult addModelId(java.lang.String modelId)
public Model getRawModel()
ModelBuildingResultgetRawModel in interface ModelBuildingResultnull.public Model getRawModel(java.lang.String modelId)
ModelBuildingResultModelBuildingResult.getModelIds(). As a special case, an empty string
can be used as the identifier for the super POM.getRawModel in interface ModelBuildingResultmodelId - The identifier of the desired raw model, must not be null.null if the specified model id does not refer to a known model.public DefaultModelBuildingResult setRawModel(java.lang.String modelId, Model rawModel)
public java.util.List<Profile> getActivePomProfiles(java.lang.String modelId)
ModelBuildingResultModelBuildingResult.getModelIds(). As a special case, an empty string can be used as the
identifier for the super POM.getActivePomProfiles in interface ModelBuildingResultmodelId - The identifier of the model whose active profiles should be retrieved, must not be null.null if the specified model id does
not refer to a known model.public DefaultModelBuildingResult setActivePomProfiles(java.lang.String modelId, java.util.List<Profile> activeProfiles)
public java.util.List<Profile> getActiveExternalProfiles()
ModelBuildingResultModelBuildingRequest.getProfiles().getActiveExternalProfiles in interface ModelBuildingResultnull.public DefaultModelBuildingResult setActiveExternalProfiles(java.util.List<Profile> activeProfiles)
public java.util.List<ModelProblem> getProblems()
ModelBuildingResultModelProblem.Severity.WARNING and below are reported here. Problems with a higher severity level cause
the model builder to fail with a ModelBuildingException.getProblems in interface ModelBuildingResultnull.public DefaultModelBuildingResult setProblems(java.util.List<ModelProblem> problems)