|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.gene.messages.Messages
public final class Messages
A list of messages.
Constructor Summary | |
---|---|
Messages(boolean log)
Constructs an empty list of messages. |
Method Summary | |
---|---|
void |
add(Message message)
Adds new message. |
MessageSeverityEnum |
getSeverity()
Returns highest severity of all messages. |
boolean |
hasErrors()
Returns true if contains some error messages. |
boolean |
isEmpty()
Checks if there are messages registered. |
Iterator<Message> |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Messages(boolean log)
log
- if true
then each added message is logged in
the Eclipse log.Method Detail |
---|
public Iterator<Message> iterator()
iterator
in interface Iterable<Message>
public MessageSeverityEnum getSeverity()
null
if there are no
messages.public boolean hasErrors()
true
if contains some error messages.
true
if there are some error messages,
false
otherwise.public void add(Message message)
message
- the message to add.public boolean isEmpty()
true
if at least one message is present.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |