Package org.apache.maven.model.building
Class Result<T>
java.lang.Object
org.apache.maven.model.building.Result<T>
- Type Parameters:
- T- the model type
Deprecated.
There are various forms of results that are represented by this class:
 
- success - in which case only the model field is set
- success with warnings - model field + non-error model problems
- error - no model, but diagnostics
- error - (partial) model and diagnostics
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> Result<T> addProblem(Result<T> result, ModelProblem problem) Deprecated.New result consisting of given result and new problem.static <T> Result<T> addProblems(Result<T> result, Iterable<? extends ModelProblem> problems) Deprecated.New result that includes the givenstatic <T> Result<T> addProblems(Result<T> result, Result<?>... results) Deprecated.static <T> Result<T> error(Iterable<? extends ModelProblem> problems) Deprecated.Error with problems describing the causestatic <T> Result<T> Deprecated.static <T> Result<T> Deprecated.static <T> Result<T> error(T model) Deprecated.static <T> Result<T> error(T model, Iterable<? extends ModelProblem> problems) Deprecated.Error with partial result and problems describing the causeget()Deprecated.Iterable<? extends ModelProblem> Deprecated.booleanDeprecated.static <T> Result<T> newResult(T model, Iterable<? extends ModelProblem> problems) Deprecated.New result - determine whether error or success by checking problems for errorsnewResultSet(Iterable<? extends Result<? extends T>> results) Deprecated.Turns the given results into a single result by combining problems and models into single collection.static <T> Result<T> success(T model) Deprecated.Success without warningsstatic <T> Result<T> success(T model, Iterable<? extends ModelProblem> problems) Deprecated.Success with warningsstatic <T> Result<T> Deprecated.Success with warnings
- 
Method Details- 
successDeprecated.Success without warnings- Parameters:
- model-
 
- 
successDeprecated.Success with warnings- Parameters:
- model-
- problems-
 
- 
successDeprecated.Success with warnings- Parameters:
- model-
- results-
 
- 
errorDeprecated.Error with problems describing the cause- Parameters:
- problems-
 
- 
errorDeprecated.
- 
errorDeprecated.
- 
errorDeprecated.
- 
errorDeprecated.Error with partial result and problems describing the cause- Parameters:
- model-
- problems-
 
- 
newResultDeprecated.New result - determine whether error or success by checking problems for errors- Parameters:
- model-
- problems-
 
- 
addProblemDeprecated.New result consisting of given result and new problem. Convenience for newResult(result.get(), concat(result.getProblems(),problems)).- Parameters:
- result-
- problem-
 
- 
addProblemspublic static <T> Result<T> addProblems(Result<T> result, Iterable<? extends ModelProblem> problems) Deprecated.New result that includes the given- Parameters:
- result-
- problems-
 
- 
addProblemsDeprecated.
- 
newResultSetDeprecated.Turns the given results into a single result by combining problems and models into single collection.- Parameters:
- results-
 
- 
getProblemsDeprecated.
- 
getDeprecated.
- 
hasErrorspublic boolean hasErrors()Deprecated.
 
- 
ModelBuilderinstead