Package org.apache.maven.model.building
Class DefaultModelBuildingEvent
- java.lang.Object
-
- org.apache.maven.model.building.DefaultModelBuildingEvent
-
- All Implemented Interfaces:
ModelBuildingEvent
class DefaultModelBuildingEvent extends java.lang.Object implements ModelBuildingEvent
Holds data relevant for a model building event.
-
-
Field Summary
Fields Modifier and Type Field Description private Model
model
private ModelProblemCollector
problems
private ModelBuildingRequest
request
-
Constructor Summary
Constructors Constructor Description DefaultModelBuildingEvent(Model model, ModelBuildingRequest request, ModelProblemCollector problems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Model
getModel()
Gets the model being built.ModelProblemCollector
getProblems()
Gets the container used to collect problems that were encountered while processing the event.ModelBuildingRequest
getRequest()
Gets the model building request being processed.
-
-
-
Field Detail
-
model
private final Model model
-
request
private final ModelBuildingRequest request
-
problems
private final ModelProblemCollector problems
-
-
Constructor Detail
-
DefaultModelBuildingEvent
DefaultModelBuildingEvent(Model model, ModelBuildingRequest request, ModelProblemCollector problems)
-
-
Method Detail
-
getModel
public Model getModel()
Description copied from interface:ModelBuildingEvent
Gets the model being built. The precise state of this model depends on the event being fired.- Specified by:
getModel
in interfaceModelBuildingEvent
- Returns:
- The model being built, never
null
.
-
getRequest
public ModelBuildingRequest getRequest()
Description copied from interface:ModelBuildingEvent
Gets the model building request being processed.- Specified by:
getRequest
in interfaceModelBuildingEvent
- Returns:
- The model building request being processed, never
null
.
-
getProblems
public ModelProblemCollector getProblems()
Description copied from interface:ModelBuildingEvent
Gets the container used to collect problems that were encountered while processing the event.- Specified by:
getProblems
in interfaceModelBuildingEvent
- Returns:
- The container used to collect problems that were encountered, never
null
.
-
-