Class DefaultSettingsProblemCollector
java.lang.Object
org.apache.maven.settings.building.DefaultSettingsProblemCollector
- All Implemented Interfaces:
SettingsProblemCollector
Collects problems that are encountered during settings building.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SettingsProblem.Severity severity, String message, int line, int column, Exception cause) Adds the specified problem.void
-
Field Details
-
problems
-
source
-
-
Constructor Details
-
DefaultSettingsProblemCollector
DefaultSettingsProblemCollector(List<SettingsProblem> problems)
-
-
Method Details
-
getProblems
-
setSource
-
add
public void add(SettingsProblem.Severity severity, String message, int line, int column, 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
.
-