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 Modelmodelprivate ModelProblemCollectorproblemsprivate ModelBuildingRequestrequest
-
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 ModelgetModel()Gets the model being built.ModelProblemCollectorgetProblems()Gets the container used to collect problems that were encountered while processing the event.ModelBuildingRequestgetRequest()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:ModelBuildingEventGets the model being built. The precise state of this model depends on the event being fired.- Specified by:
getModelin interfaceModelBuildingEvent- Returns:
- The model being built, never
null.
-
getRequest
public ModelBuildingRequest getRequest()
Description copied from interface:ModelBuildingEventGets the model building request being processed.- Specified by:
getRequestin interfaceModelBuildingEvent- Returns:
- The model building request being processed, never
null.
-
getProblems
public ModelProblemCollector getProblems()
Description copied from interface:ModelBuildingEventGets the container used to collect problems that were encountered while processing the event.- Specified by:
getProblemsin interfaceModelBuildingEvent- Returns:
- The container used to collect problems that were encountered, never
null.
-
-