Package org.apache.maven.building
Interface ProblemCollector
-
- All Known Implementing Classes:
DefaultProblemCollector
public interface ProblemCollectorCollects problems that are encountered during settings building.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(Problem.Severity severity, java.lang.String message, int line, int column, java.lang.Exception cause)Adds the specified problem.java.util.List<Problem>getProblems()voidsetSource(java.lang.String source)The next messages will be bound to this source.
-
-
-
Method Detail
-
add
void add(Problem.Severity severity, java.lang.String message, int line, int column, java.lang.Exception cause)
Adds the specified problem. Either message or exception is required- 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.
-
setSource
void setSource(java.lang.String source)
The 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.- Parameters:
source-
-
getProblems
java.util.List<Problem> getProblems()
- Returns:
- the collected Problems, never
null
-
-