org.jboss.dna.common.collection
Class AbstractProblems
java.lang.Object
org.jboss.dna.common.collection.AbstractProblems
- All Implemented Interfaces:
- Iterable<Problem>, Problems
- Direct Known Subclasses:
- SimpleProblems, ThreadSafeProblems
public abstract class AbstractProblems
- extends Object
- implements Problems
A list of problems for some execution context. The problems will be returned
in the order in which they
were encountered (although this cannot be guaranteed in contexts involving multiple threads or processes).
- Author:
- Randall Hauch, John Verhaeg
Method Summary |
void |
addError(I18n message,
Object... params)
|
void |
addError(I18n message,
String resource,
String location,
Object... params)
|
void |
addError(int code,
I18n message,
Object... params)
|
void |
addError(int code,
I18n message,
String resource,
String location,
Object... params)
|
void |
addError(Throwable throwable,
I18n message,
Object... params)
|
void |
addError(Throwable throwable,
I18n message,
String resource,
String location,
Object... params)
|
void |
addError(Throwable throwable,
int code,
I18n message,
Object... params)
|
void |
addError(Throwable throwable,
int code,
I18n message,
String resource,
String location,
Object... params)
|
void |
addInfo(I18n message,
Object... params)
|
void |
addInfo(I18n message,
String resource,
String location,
Object... params)
|
void |
addInfo(int code,
I18n message,
Object... params)
|
void |
addInfo(int code,
I18n message,
String resource,
String location,
Object... params)
|
void |
addInfo(Throwable throwable,
I18n message,
Object... params)
|
void |
addInfo(Throwable throwable,
I18n message,
String resource,
String location,
Object... params)
|
void |
addInfo(Throwable throwable,
int code,
I18n message,
Object... params)
|
void |
addInfo(Throwable throwable,
int code,
I18n message,
String resource,
String location,
Object... params)
|
void |
addWarning(I18n message,
Object... params)
|
void |
addWarning(I18n message,
String resource,
String location,
Object... params)
|
void |
addWarning(int code,
I18n message,
Object... params)
|
void |
addWarning(int code,
I18n message,
String resource,
String location,
Object... params)
|
void |
addWarning(Throwable throwable,
I18n message,
Object... params)
|
void |
addWarning(Throwable throwable,
I18n message,
String resource,
String location,
Object... params)
|
void |
addWarning(Throwable throwable,
int code,
I18n message,
Object... params)
|
void |
addWarning(Throwable throwable,
int code,
I18n message,
String resource,
String location,
Object... params)
|
boolean |
hasErrors()
|
boolean |
hasInfo()
|
boolean |
hasProblems()
|
boolean |
hasWarnings()
|
boolean |
isEmpty()
|
Iterator<Problem> |
iterator()
|
int |
size()
|
AbstractProblems
public AbstractProblems()
addError
public void addError(I18n message,
Object... params)
- Specified by:
addError
in interface Problems
addError
public void addError(Throwable throwable,
I18n message,
Object... params)
- Specified by:
addError
in interface Problems
addError
public void addError(I18n message,
String resource,
String location,
Object... params)
- Specified by:
addError
in interface Problems
addError
public void addError(Throwable throwable,
I18n message,
String resource,
String location,
Object... params)
- Specified by:
addError
in interface Problems
addError
public void addError(int code,
I18n message,
Object... params)
- Specified by:
addError
in interface Problems
addError
public void addError(Throwable throwable,
int code,
I18n message,
Object... params)
- Specified by:
addError
in interface Problems
addError
public void addError(int code,
I18n message,
String resource,
String location,
Object... params)
- Specified by:
addError
in interface Problems
addError
public void addError(Throwable throwable,
int code,
I18n message,
String resource,
String location,
Object... params)
- Specified by:
addError
in interface Problems
addWarning
public void addWarning(I18n message,
Object... params)
- Specified by:
addWarning
in interface Problems
addWarning
public void addWarning(Throwable throwable,
I18n message,
Object... params)
- Specified by:
addWarning
in interface Problems
addWarning
public void addWarning(I18n message,
String resource,
String location,
Object... params)
- Specified by:
addWarning
in interface Problems
addWarning
public void addWarning(Throwable throwable,
I18n message,
String resource,
String location,
Object... params)
- Specified by:
addWarning
in interface Problems
addWarning
public void addWarning(int code,
I18n message,
Object... params)
- Specified by:
addWarning
in interface Problems
addWarning
public void addWarning(Throwable throwable,
int code,
I18n message,
Object... params)
- Specified by:
addWarning
in interface Problems
addWarning
public void addWarning(int code,
I18n message,
String resource,
String location,
Object... params)
- Specified by:
addWarning
in interface Problems
addWarning
public void addWarning(Throwable throwable,
int code,
I18n message,
String resource,
String location,
Object... params)
- Specified by:
addWarning
in interface Problems
addInfo
public void addInfo(I18n message,
Object... params)
- Specified by:
addInfo
in interface Problems
addInfo
public void addInfo(Throwable throwable,
I18n message,
Object... params)
- Specified by:
addInfo
in interface Problems
addInfo
public void addInfo(I18n message,
String resource,
String location,
Object... params)
- Specified by:
addInfo
in interface Problems
addInfo
public void addInfo(Throwable throwable,
I18n message,
String resource,
String location,
Object... params)
- Specified by:
addInfo
in interface Problems
addInfo
public void addInfo(int code,
I18n message,
Object... params)
- Specified by:
addInfo
in interface Problems
addInfo
public void addInfo(Throwable throwable,
int code,
I18n message,
Object... params)
- Specified by:
addInfo
in interface Problems
addInfo
public void addInfo(int code,
I18n message,
String resource,
String location,
Object... params)
- Specified by:
addInfo
in interface Problems
addInfo
public void addInfo(Throwable throwable,
int code,
I18n message,
String resource,
String location,
Object... params)
- Specified by:
addInfo
in interface Problems
hasProblems
public boolean hasProblems()
- Specified by:
hasProblems
in interface Problems
hasErrors
public boolean hasErrors()
- Specified by:
hasErrors
in interface Problems
hasWarnings
public boolean hasWarnings()
- Specified by:
hasWarnings
in interface Problems
hasInfo
public boolean hasInfo()
- Specified by:
hasInfo
in interface Problems
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Problems
size
public int size()
- Specified by:
size
in interface Problems
iterator
public Iterator<Problem> iterator()
- Specified by:
iterator
in interface Iterable<Problem>
- Specified by:
iterator
in interface Problems
- See Also:
Problems.iterator()
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.