Package org.apache.maven.model.building
Class ModelProblemCollectorRequest
- java.lang.Object
-
- org.apache.maven.model.building.ModelProblemCollectorRequest
-
public final class ModelProblemCollectorRequest extends Object
Class to wrap request parameters to ModelProblemCollector.addProblem- Author:
- mkleint
-
-
Constructor Summary
Constructors Constructor Description ModelProblemCollectorRequest(ModelProblem.Severity severity, ModelProblem.Version version)
Create a new request with mandatory parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exception
getException()
InputLocation
getLocation()
String
getMessage()
ModelProblem.Severity
getSeverity()
ModelProblem.Version
getVersion()
ModelProblemCollectorRequest
setException(Exception exception)
ModelProblemCollectorRequest
setLocation(InputLocation location)
ModelProblemCollectorRequest
setMessage(String message)
-
-
-
Constructor Detail
-
ModelProblemCollectorRequest
public ModelProblemCollectorRequest(ModelProblem.Severity severity, ModelProblem.Version version)
Create a new request with mandatory parameters.- Parameters:
severity
-version
-
-
-
Method Detail
-
getSeverity
public ModelProblem.Severity getSeverity()
-
getVersion
public ModelProblem.Version getVersion()
-
getException
public Exception getException()
-
setException
public ModelProblemCollectorRequest setException(Exception exception)
-
getMessage
public String getMessage()
-
setMessage
public ModelProblemCollectorRequest setMessage(String message)
-
getLocation
public InputLocation getLocation()
-
setLocation
public ModelProblemCollectorRequest setLocation(InputLocation location)
-
-