Class DefaultSettingsProblemCollector
- java.lang.Object
-
- org.apache.maven.settings.building.DefaultSettingsProblemCollector
-
- All Implemented Interfaces:
SettingsProblemCollector
class DefaultSettingsProblemCollector extends java.lang.Object implements SettingsProblemCollector
Collects problems that are encountered during settings building.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SettingsProblem>
problems
private java.lang.String
source
-
Constructor Summary
Constructors Constructor Description DefaultSettingsProblemCollector(java.util.List<SettingsProblem> problems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SettingsProblem.Severity severity, java.lang.String message, int line, int column, java.lang.Exception cause)
Adds the specified problem.java.util.List<SettingsProblem>
getProblems()
void
setSource(java.lang.String source)
-
-
-
Field Detail
-
problems
private java.util.List<SettingsProblem> problems
-
source
private java.lang.String source
-
-
Constructor Detail
-
DefaultSettingsProblemCollector
DefaultSettingsProblemCollector(java.util.List<SettingsProblem> problems)
-
-
Method Detail
-
getProblems
public java.util.List<SettingsProblem> getProblems()
-
setSource
public void setSource(java.lang.String source)
-
add
public void add(SettingsProblem.Severity severity, java.lang.String message, int line, int column, java.lang.Exception cause)
Description copied from interface:SettingsProblemCollector
Adds the specified problem.- Specified by:
add
in interfaceSettingsProblemCollector
- Parameters:
severity
- The severity of the problem, must not benull
.message
- The detail message of the problem, may benull
.line
- The one-based index of the line containing the problem or-1
if unknown.column
- The one-based index of the column containing the problem or-1
if unknown.cause
- The cause of the problem, may benull
.
-
-