|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jindent.MessageList
public class MessageList
This class contains a list of messages (which also can be warnings and errors). A message list will be created from Jindent's formatter after its formatting process.
Constructor Summary | |
---|---|
MessageList()
Creates an empty message list. |
Method Summary | |
---|---|
void |
addMessage(Message message)
Adds a message to list. |
void |
clear()
Removes all messages from list. |
boolean |
containsErrorMessage()
Gets informations about error messages in list. |
boolean |
containsWarningMessage()
Gets informations about warning messages in list. |
int |
countMessages()
Returns the number of messages contained in this list. |
Message |
getMessageAt(int i)
Gets a certain message by index. |
MessageList |
getMessages(int idMask)
|
void |
sort()
Sorts messages in list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageList()
Method Detail |
---|
public int countMessages()
public Message getMessageAt(int i)
i
- index of message
public void clear()
public void addMessage(Message message)
message
- message to addpublic void sort()
public boolean containsWarningMessage()
true
if a warning is contained in the list,
otherwise false
public boolean containsErrorMessage()
true
if an error is contained in the list,
otherwise false
public MessageList getMessages(int idMask)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |