Package org.apache.maven.model.building
Class DefaultModelProblemCollector
java.lang.Object
org.apache.maven.model.building.DefaultModelProblemCollector
- All Implemented Interfaces:
ModelProblemCollector
,ModelProblemCollectorExt
@Deprecated(since="4.0.0")
class DefaultModelProblemCollector
extends Object
implements ModelProblemCollectorExt
Deprecated.
Collects problems that are encountered during model building. The primary purpose of this component is to account for
the fact that the problem reporter has/should not have information about the calling context and hence cannot provide
an expressive source hint for the model problem. Instead, the source hint is configured by the model builder before
it delegates to other components that potentially encounter problems. Then, the problem reporter can focus on
providing a simple error message, leaving the donkey work of creating a nice model problem to this component.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<ModelProblem> Deprecated.private final ModelBuildingResult
Deprecated.private Model
Deprecated.private Set
<ModelProblem.Severity> Deprecated.private String
Deprecated.private Model
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ModelProblem problem) Deprecated.void
Deprecated.Adds the specified problem.void
addAll
(List<ModelProblem> problems) Deprecated.private String
Deprecated.Deprecated.The collected problems.Deprecated.Deprecated.private String
Deprecated.boolean
Deprecated.boolean
Deprecated.Deprecated.void
setRootModel
(Model rootModel) Deprecated.void
Deprecated.void
Deprecated.
-
Field Details
-
result
Deprecated. -
problems
Deprecated. -
source
Deprecated. -
sourceModel
Deprecated. -
rootModel
Deprecated. -
severities
Deprecated.
-
-
Constructor Details
-
DefaultModelProblemCollector
DefaultModelProblemCollector(ModelBuildingResult result) Deprecated.
-
-
Method Details
-
hasFatalErrors
public boolean hasFatalErrors()Deprecated. -
hasErrors
public boolean hasErrors()Deprecated. -
getProblems
Deprecated.Description copied from interface:ModelProblemCollectorExt
The collected problems.- Specified by:
getProblems
in interfaceModelProblemCollectorExt
- Returns:
- a list of model problems encountered, never
null
-
setSource
Deprecated. -
setSource
Deprecated. -
getSource
Deprecated. -
getModelId
Deprecated. -
setRootModel
Deprecated. -
getRootModel
Deprecated. -
getRootModelId
Deprecated. -
add
Deprecated. -
addAll
Deprecated. -
add
Deprecated.Description copied from interface:ModelProblemCollector
Adds the specified problem.- Specified by:
add
in interfaceModelProblemCollector
- Parameters:
req
- must not be null
-
newModelBuildingException
Deprecated.
-
ModelBuilder
instead