|
ModeShape Distribution 3.0.0.Beta2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.common.collection.ImmutableProblems
@Immutable public class ImmutableProblems

An immutable wrapper for a mutable Problems.
| Constructor Summary | |
|---|---|
ImmutableProblems(Problems delegate)
|
|
| Method Summary | |
|---|---|
void |
addAll(Iterable<Problem> problems)
Add all of the problems in the supplied list. |
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 |
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. |
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()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableProblems(Problems delegate)
| Method Detail |
|---|
public void addError(I18n message,
Object... params)
Problems
addError in interface Problemsmessage - the internationalized message describing the problemparams - the values for the parameters in the message
public void addError(String resource,
String location,
I18n message,
Object... params)
Problems
addError 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 message
public void addError(int code,
I18n message,
Object... params)
Problems
addError in interface Problemscode - the error codemessage - the internationalized message describing the problemparams - the values for the parameters in the message
public void addError(int code,
String resource,
String location,
I18n message,
Object... params)
Problems
addError in interface Problemscode - 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 message
public void addError(Throwable throwable,
I18n message,
Object... params)
Problems
addError 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 message
public void addError(Throwable throwable,
String resource,
String location,
I18n message,
Object... params)
Problems
addError 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 message
public void addError(Throwable throwable,
int code,
I18n message,
Object... params)
Problems
addError in interface Problemsthrowable - the exception that represents the error; may be nullcode - the error codemessage - the internationalized message describing the problemparams - the values for the parameters in the message
public void addError(Throwable throwable,
int code,
String resource,
String location,
I18n message,
Object... params)
Problems
addError 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 message
public void addInfo(I18n message,
Object... params)
Problems
addInfo in interface Problemsmessage - the internationalized message describing the problemparams - the values for the parameters in the message
public void addInfo(String resource,
String location,
I18n message,
Object... params)
Problems
addInfo 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 message
public void addInfo(int code,
I18n message,
Object... params)
Problems
addInfo in interface Problemscode - the problem codemessage - the internationalized message describing the problemparams - the values for the parameters in the message
public void addInfo(int code,
String resource,
String location,
I18n message,
Object... params)
Problems
addInfo 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 message
public void addInfo(Throwable throwable,
I18n message,
Object... params)
Problems
addInfo in interface Problemsthrowable - the exception that represents the warning; may be nullmessage - the internationalized message describing the problemparams - the values for the parameters in the message
public void addInfo(Throwable throwable,
String resource,
String location,
I18n message,
Object... params)
Problems
addInfo 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 message
public void addInfo(Throwable throwable,
int code,
I18n message,
Object... params)
Problems
addInfo 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 message
public void addInfo(Throwable throwable,
int code,
String resource,
String location,
I18n message,
Object... params)
Problems
addInfo 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 message
public void addWarning(I18n message,
Object... params)
Problems
addWarning in interface Problemsmessage - the internationalized message describing the problemparams - the values for the parameters in the message
public void addWarning(String resource,
String location,
I18n message,
Object... params)
Problems
addWarning 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 message
public void addWarning(int code,
I18n message,
Object... params)
Problems
addWarning in interface Problemscode - the problem codemessage - the internationalized message describing the problemparams - the values for the parameters in the message
public void addWarning(int code,
String resource,
String location,
I18n message,
Object... params)
Problems
addWarning 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 message
public void addWarning(Throwable throwable,
I18n message,
Object... params)
Problems
addWarning 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 message
public void addWarning(Throwable throwable,
String resource,
String location,
I18n message,
Object... params)
Problems
addWarning 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 message
public void addWarning(Throwable throwable,
int code,
I18n message,
Object... params)
Problems
addWarning 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 message
public void addWarning(Throwable throwable,
int code,
String resource,
String location,
I18n message,
Object... params)
Problems
addWarning 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 addAll(Iterable<Problem> problems)
Problems
addAll in interface Problemsproblems - the problems to add to this list; this method does nothing if null or emptypublic boolean hasErrors()
Problems
hasErrors in interface Problemspublic boolean hasInfo()
Problems
hasInfo in interface Problemspublic boolean hasProblems()
Problems
hasProblems in interface ProblemsProblems.isEmpty(),
Problems.size()public boolean hasWarnings()
Problems
hasWarnings in interface Problemspublic boolean isEmpty()
Problems
isEmpty in interface ProblemsProblems.hasProblems(),
Problems.size()public int errorCount()
Problems
errorCount in interface Problemspublic int problemCount()
Problems
problemCount in interface Problemspublic int warningCount()
Problems
warningCount in interface Problemspublic int infoCount()
Problems
infoCount in interface Problemspublic Iterator<Problem> iterator()
Problems
iterator in interface Iterable<Problem>iterator in interface ProblemsIterable.iterator()public int size()
Problems
size in interface ProblemsProblems.hasProblems(),
Problems.isEmpty()public String toString()
toString in class Objectpublic void writeTo(Logger logger)
Problems
writeTo in interface Problemslogger - the logger
public void writeTo(Logger logger,
Problem.Status firstStatus,
Problem.Status... additionalStatuses)
Problems
writeTo in interface Problemslogger - the loggerfirstStatus - the first status to be loggedadditionalStatuses - the additional statuses to be logged
|
ModeShape Distribution 3.0.0.Beta2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||