jindent
Class MessageList

java.lang.Object
  extended by jindent.MessageList

public class MessageList
extends Object

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

MessageList

public MessageList()
Creates an empty message list.

Method Detail

countMessages

public int countMessages()
Returns the number of messages contained in this list.

Returns:
number of messages

getMessageAt

public Message getMessageAt(int i)
Gets a certain message by index.

Parameters:
i - index of message
Returns:
message with index i

clear

public void clear()
Removes all messages from list.


addMessage

public void addMessage(Message message)
Adds a message to list.

Parameters:
message - message to add

sort

public void sort()
Sorts messages in list.


containsWarningMessage

public boolean containsWarningMessage()
Gets informations about warning messages in list.

Returns:
true if a warning is contained in the list, otherwise false

containsErrorMessage

public boolean containsErrorMessage()
Gets informations about error messages in list.

Returns:
true if an error is contained in the list, otherwise false

getMessages

public MessageList getMessages(int idMask)