public abstract class AbstractProblems extends Object implements Problems
returned in the order in which they
were encountered (although this cannot be guaranteed in contexts involving multiple threads or processes).| Modifier and Type | Field and Description |
|---|---|
protected static List<Problem> |
EMPTY_PROBLEMS |
| Constructor and Description |
|---|
AbstractProblems() |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(I18n message,
Object... params)
Add an error message with the parameters that should be used when localizing the message.
|
void |
addError(int code,
I18n message,
Object... params)
Add an error message with the parameters that should be used when localizing the message.
|
void |
addError(int code,
String resource,
String location,
I18n message,
Object... params)
Add an error message with a description of the resource, its location, and the parameters that should be used when
localizing the message
|
void |
addError(String resource,
String location,
I18n message,
Object... params)
Add an error message with a description of the resource, its location, and the parameters that should be used when
localizing the message
|
void |
addError(Throwable throwable,
I18n message,
Object... params)
Add an error exception and message with the parameters that should be used when localizing the message.
|
void |
addError(Throwable throwable,
int code,
I18n message,
Object... params)
Add an error exception and message with the parameters that should be used when localizing the message.
|
void |
addError(Throwable throwable,
int code,
String resource,
String location,
I18n message,
Object... params)
Add an error exception and message with a description of the resource, its location, and the parameters that should be used
when localizing the message
|
void |
addError(Throwable throwable,
String resource,
String location,
I18n message,
Object... params)
Add an error exception and message with a description of the resource, its location, and the parameters that should be used
when localizing the message
|
void |
addInfo(I18n message,
Object... params)
Add a informational message with the parameters that should be used when localizing the message.
|
void |
addInfo(int code,
I18n message,
Object... params)
Add a informational message with the parameters that should be used when localizing the message.
|
void |
addInfo(int code,
String resource,
String location,
I18n message,
Object... params)
Add an informational message with a description of the resource, its location, and the parameters that should be used when
localizing the message
|
void |
addInfo(String resource,
String location,
I18n message,
Object... params)
Add an informational message with a description of the resource, its location, and the parameters that should be used when
localizing the message
|
void |
addInfo(Throwable throwable,
I18n message,
Object... params)
Add an informational exception and message with the parameters that should be used when localizing the message.
|
void |
addInfo(Throwable throwable,
int code,
I18n message,
Object... params)
Add a informational exception and message with the parameters that should be used when localizing the message.
|
void |
addInfo(Throwable throwable,
int code,
String resource,
String location,
I18n message,
Object... params)
Add an informational exception and message with a description of the resource, its location, and the parameters that should
be used when localizing the message
|
void |
addInfo(Throwable throwable,
String resource,
String location,
I18n message,
Object... params)
Add an informational exception and message with a description of the resource, its location, and the parameters that should
be used when localizing the message
|
protected abstract void |
addProblem(Problem problem) |
void |
addWarning(I18n message,
Object... params)
Add a warning message with the parameters that should be used when localizing the message.
|
void |
addWarning(int code,
I18n message,
Object... params)
Add a warning message with the parameters that should be used when localizing the message.
|
void |
addWarning(int code,
String resource,
String location,
I18n message,
Object... params)
Add a warning message with a description of the resource, its location, and the parameters that should be used when
localizing the message
|
void |
addWarning(String resource,
String location,
I18n message,
Object... params)
Add a warning message with a description of the resource, its location, and the parameters that should be used when
localizing the message
|
void |
addWarning(Throwable throwable,
I18n message,
Object... params)
Add a warning exception and message with the parameters that should be used when localizing the message.
|
void |
addWarning(Throwable throwable,
int code,
I18n message,
Object... params)
Add a warning exception and message with the parameters that should be used when localizing the message.
|
void |
addWarning(Throwable throwable,
int code,
String resource,
String location,
I18n message,
Object... params)
Add a warning exception and message with a description of the resource, its location, and the parameters that should be
used when localizing the message
|
void |
addWarning(Throwable throwable,
String resource,
String location,
I18n message,
Object... params)
Add a warning exception and message with a description of the resource, its location, and the parameters that should be
used when localizing the message
|
int |
errorCount()
Determine the number of errors within these results.
|
protected abstract 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.
|
int |
infoCount()
Determine the number of information messages within these results.
|
boolean |
isEmpty()
Determine if this collection is empty.
|
Iterator<Problem> |
iterator()
|
protected Logger.Level |
logLevelFor(Problem.Status status) |
int |
problemCount()
Determine the number of problems (that is, errors and warnings) within these results.
|
int |
size()
Get the number of problems that are in this collection
|
String |
toString() |
int |
warningCount()
Determine the number of warnings within these results.
|
void |
writeTo(Logger logger)
Write the problems to the supplied logger.
|
void |
writeTo(Logger logger,
Problem.Status firstStatus,
Problem.Status... additionalStatuses)
Write the problems to the supplied logger.
|
public void addError(I18n message, Object... params)
Problemspublic void addError(Throwable throwable, I18n message, Object... params)
Problemspublic void addError(String resource, String location, I18n message, Object... params)
Problemspublic void addError(Throwable throwable, String resource, String location, I18n message, Object... params)
ProblemsaddError in interface Problemsthrowable - the exception that represents the error; may be nullresource - the description of the resource; may be nulllocation - the location of the resource; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addError(int code,
I18n message,
Object... params)
Problemspublic void addError(Throwable throwable, int code, I18n message, Object... params)
Problemspublic void addError(int code,
String resource,
String location,
I18n message,
Object... params)
Problemspublic void addError(Throwable throwable, int code, String resource, String location, I18n message, Object... params)
ProblemsaddError in interface Problemsthrowable - the exception that represents the error; may be nullcode - the error coderesource - the description of the resource; may be nulllocation - the location of the resource; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addWarning(I18n message, Object... params)
ProblemsaddWarning in interface Problemsmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addWarning(Throwable throwable, I18n message, Object... params)
ProblemsaddWarning in interface Problemsthrowable - the exception that represents the error; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addWarning(String resource, String location, I18n message, Object... params)
ProblemsaddWarning in interface Problemsresource - the description of the resource; may be nulllocation - the location of the resource; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addWarning(Throwable throwable, String resource, String location, I18n message, Object... params)
ProblemsaddWarning in interface Problemsthrowable - the exception that represents the warning; may be nullresource - the description of the resource; may be nulllocation - the location of the resource; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addWarning(int code,
I18n message,
Object... params)
ProblemsaddWarning in interface Problemscode - the problem codemessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addWarning(Throwable throwable, int code, I18n message, Object... params)
ProblemsaddWarning in interface Problemsthrowable - the exception that represents the warning; may be nullcode - the problem codemessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addWarning(int code,
String resource,
String location,
I18n message,
Object... params)
ProblemsaddWarning in interface Problemscode - the problem coderesource - the description of the resource; may be nulllocation - the location of the resource; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addWarning(Throwable throwable, int code, String resource, String location, I18n message, Object... params)
ProblemsaddWarning in interface Problemsthrowable - the exception that represents the warning; may be nullcode - the problem coderesource - the description of the resource; may be nulllocation - the location of the resource; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addInfo(I18n message, Object... params)
Problemspublic void addInfo(Throwable throwable, I18n message, Object... params)
Problemspublic void addInfo(String resource, String location, I18n message, Object... params)
Problemspublic void addInfo(Throwable throwable, String resource, String location, I18n message, Object... params)
ProblemsaddInfo in interface Problemsthrowable - the exception that represents the problem; may be nullresource - the description of the resource; may be nulllocation - the location of the resource; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addInfo(int code,
I18n message,
Object... params)
Problemspublic void addInfo(Throwable throwable, int code, I18n message, Object... params)
Problemspublic void addInfo(int code,
String resource,
String location,
I18n message,
Object... params)
ProblemsaddInfo in interface Problemscode - the problem coderesource - the description of the resource; may be nulllocation - the location of the resource; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic void addInfo(Throwable throwable, int code, String resource, String location, I18n message, Object... params)
ProblemsaddInfo in interface Problemsthrowable - the exception that represents the problem; may be nullcode - the problem coderesource - the description of the resource; may be nulllocation - the location of the resource; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the messagepublic boolean hasProblems()
ProblemshasProblems in interface ProblemsProblems.isEmpty(),
Problems.size()public boolean hasErrors()
Problemspublic boolean hasWarnings()
ProblemshasWarnings in interface Problemspublic boolean hasInfo()
Problemspublic boolean isEmpty()
ProblemsisEmpty in interface ProblemsProblems.hasProblems(),
Problems.size()public int errorCount()
ProblemserrorCount in interface Problemspublic int problemCount()
ProblemsproblemCount in interface Problemspublic int warningCount()
ProblemswarningCount in interface Problemspublic int infoCount()
Problemspublic int size()
Problemssize in interface ProblemsProblems.hasProblems(),
Problems.isEmpty()protected abstract void addProblem(Problem problem)
public void writeTo(Logger logger)
Problemspublic void writeTo(Logger logger, Problem.Status firstStatus, Problem.Status... additionalStatuses)
Problemsprotected final Logger.Level logLevelFor(Problem.Status status)
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.