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.
use ModelBuilder instead
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 Details

  • Constructor Details

    • DefaultModelProblemCollector

      DefaultModelProblemCollector(ModelBuildingResult result)
      Deprecated.
  • Method Details

    • hasFatalErrors

      public boolean hasFatalErrors()
      Deprecated.
    • hasErrors

      public boolean hasErrors()
      Deprecated.
    • getProblems

      public List<ModelProblem> getProblems()
      Deprecated.
      Description copied from interface: ModelProblemCollectorExt
      The collected problems.
      Specified by:
      getProblems in interface ModelProblemCollectorExt
      Returns:
      a list of model problems encountered, never null
    • setSource

      public void setSource(String source)
      Deprecated.
    • setSource

      public void setSource(Model source)
      Deprecated.
    • getSource

      private String getSource()
      Deprecated.
    • getModelId

      private String getModelId()
      Deprecated.
    • setRootModel

      public void setRootModel(Model rootModel)
      Deprecated.
    • getRootModel

      public Model getRootModel()
      Deprecated.
    • getRootModelId

      public String getRootModelId()
      Deprecated.
    • add

      public void add(ModelProblem problem)
      Deprecated.
    • addAll

      public void addAll(List<ModelProblem> problems)
      Deprecated.
    • add

      public void add(ModelProblemCollectorRequest req)
      Deprecated.
      Description copied from interface: ModelProblemCollector
      Adds the specified problem.
      Specified by:
      add in interface ModelProblemCollector
      Parameters:
      req - must not be null
    • newModelBuildingException

      public ModelBuildingException newModelBuildingException()
      Deprecated.