Package org.apache.maven.building
Class DefaultProblemCollector
java.lang.Object
org.apache.maven.building.DefaultProblemCollector
- All Implemented Interfaces:
ProblemCollector
Collects problems that are encountered during settings building.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Problem.Severity severity, String message, int line, int column, Exception cause) Adds the specified problem.voidThe next messages will be bound to this source.
-
Field Details
-
problems
-
source
-
-
Constructor Details
-
DefaultProblemCollector
-
-
Method Details
-
getProblems
- Specified by:
getProblemsin interfaceProblemCollector- Returns:
- the collected Problems, never
null
-
setSource
Description copied from interface:ProblemCollectorThe next messages will be bound to this source. When calling this method again, previous messages keep their source, but the next messages will use the new source.- Specified by:
setSourcein interfaceProblemCollector- Parameters:
source-
-
add
Description copied from interface:ProblemCollectorAdds the specified problem. Either message or exception is required- Specified by:
addin interfaceProblemCollector- 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-1if unknown.column- The one-based index of the column containing the problem or-1if unknown.cause- The cause of the problem, may benull.
-