@ThreadSafe public class ThreadSafeProblems extends AbstractProblems
Problems collection. The problems will be returned in the order in which they were
encountered.EMPTY_PROBLEMS| Constructor and Description |
|---|
ThreadSafeProblems() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Iterable<Problem> problems)
Add all of the problems in the supplied list.
|
protected void |
addProblem(Problem problem) |
protected List<Problem> |
getProblems() |
boolean |
hasErrors()
Determine if there is at least one error in this collection.
|
boolean |
hasInfo()
Determine if there is at least one informational problem in this collection.
|
boolean |
hasProblems()
Determine if there are problems in this collection.
|
boolean |
hasWarnings()
Determine if there is at least one warning in this collection.
|
boolean |
isEmpty()
Determine if this collection is empty.
|
int |
size()
Get the number of problems that are in this collection
|
addError, addError, addError, addError, addError, addError, addError, addError, addInfo, addInfo, addInfo, addInfo, addInfo, addInfo, addInfo, addInfo, addWarning, addWarning, addWarning, addWarning, addWarning, addWarning, addWarning, addWarning, errorCount, infoCount, iterator, logLevelFor, problemCount, toString, warningCount, writeTo, writeTopublic boolean hasErrors()
hasErrors in interface ProblemshasErrors in class AbstractProblemsAbstractProblems.hasErrors()public boolean hasProblems()
hasProblems in interface ProblemshasProblems in class AbstractProblemsAbstractProblems.hasProblems()public boolean hasInfo()
hasInfo in interface ProblemshasInfo in class AbstractProblemsAbstractProblems.hasInfo()public boolean hasWarnings()
hasWarnings in interface ProblemshasWarnings in class AbstractProblemsAbstractProblems.hasWarnings()public boolean isEmpty()
isEmpty in interface ProblemsisEmpty in class AbstractProblemsAbstractProblems.isEmpty()public int size()
size in interface Problemssize in class AbstractProblemsAbstractProblems.size()protected void addProblem(Problem problem)
addProblem in class AbstractProblemsAbstractProblems.addProblem(Problem)public void addAll(Iterable<Problem> problems)
problems - the problems to add to this list; this method does nothing if null or emptyProblems.addAll(java.lang.Iterable)protected List<Problem> getProblems()
getProblems in class AbstractProblemsAbstractProblems.getProblems()Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.