Package org.apache.maven.model.building
Class ModelProblemCollectorRequest
- java.lang.Object
-
- org.apache.maven.model.building.ModelProblemCollectorRequest
-
public final class ModelProblemCollectorRequest extends java.lang.ObjectClass to wrap request parameters to ModelProblemCollector.addProblem
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Exceptionexceptionprivate InputLocationlocationprivate java.lang.Stringmessageprivate ModelProblem.Severityseverityprivate ModelProblem.Versionversion
-
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 java.lang.ExceptiongetException()InputLocationgetLocation()java.lang.StringgetMessage()ModelProblem.SeveritygetSeverity()ModelProblem.VersiongetVersion()ModelProblemCollectorRequestsetException(java.lang.Exception exception)ModelProblemCollectorRequestsetLocation(InputLocation location)ModelProblemCollectorRequestsetMessage(java.lang.String message)
-
-
-
Field Detail
-
severity
private final ModelProblem.Severity severity
-
version
private final ModelProblem.Version version
-
exception
private java.lang.Exception exception
-
message
private java.lang.String message
-
location
private InputLocation location
-
-
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 java.lang.Exception getException()
-
setException
public ModelProblemCollectorRequest setException(java.lang.Exception exception)
-
getMessage
public java.lang.String getMessage()
-
setMessage
public ModelProblemCollectorRequest setMessage(java.lang.String message)
-
getLocation
public InputLocation getLocation()
-
setLocation
public ModelProblemCollectorRequest setLocation(InputLocation location)
-
-