public interface IMessageHolder extends IMessageHandler
| Modifier and Type | Field and Description |
|---|---|
static boolean |
EQUAL
value for orGreater parameter
|
static boolean |
ORGREATER
value for orGreater parameter
|
SYSTEM_ERR, SYSTEM_OUT, THROW| Modifier and Type | Method and Description |
|---|---|
void |
clearMessages()
Clear any messages.
|
IMessage[] |
getMessages(IMessage.Kind kind,
boolean orGreater)
Get all messages or those of a specific kind.
|
java.util.List<IMessage> |
getUnmodifiableListView() |
boolean |
hasAnyMessage(IMessage.Kind kind,
boolean orGreater)
Tell whether this holder has any message of this kind (optionally or greater).
|
int |
numMessages(IMessage.Kind kind,
boolean orGreater)
Count the messages currently held by this holder.
|
dontIgnore, handleMessage, ignore, isIgnoringstatic final boolean ORGREATER
static final boolean EQUAL
boolean hasAnyMessage(IMessage.Kind kind, boolean orGreater)
kind - the IMessage.Kind to check for - accept any if nullorGreater - if true, also any greater than the target kind as determined by IMessage.Kind.COMPARATORint numMessages(IMessage.Kind kind, boolean orGreater)
kind - the IMessage.Kind expected, or null for all messagesorGreater - if true, also any greater than the target kind as determined by IMessage.Kind.COMPARATORIMessage[] getMessages(IMessage.Kind kind, boolean orGreater)
kind - the IMessage.Kind expected, or null for all messagesorGreater - if true, also get any greater than the target kind as determined by IMessage.Kind.COMPARATORjava.util.List<IMessage> getUnmodifiableListView()
void clearMessages()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if message list is read-only