com.togethersoft.sca.core.plugin.report
Class MessageList

java.lang.Object
  |
  +--com.togethersoft.sca.core.plugin.report.MessageList
All Implemented Interfaces:
ILogListener

public class MessageList
extends java.lang.Object
implements ILogListener


Method Summary
 IReportMessage[] asArray()
          Present message list as array.
 void dumpToFile(java.lang.String fileName, JobControl jobControl)
          Dumps messages to specified file
 void dumpToStream(java.io.PrintStream out, JobControl jobControl)
           
 int elementsUsed()
          Get the number of elements in the list
 IReportMessage getCurrentMessage()
          Gets the current message, or null if there is no current message
 IReportMessage getFirstMessage()
          Gets the first message.
 IReportMessage getNextMessage()
          Gets the next message.
 void receive(IMessage m)
          Append the message to the end of list
 void receive(IReportMessage message)
          Append the message to the end of list
 void setCurrentProjectName(java.lang.String projectName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asArray

public IReportMessage[] asArray()
Present message list as array. The items from position returned by
See Also:
are not used

dumpToFile

public void dumpToFile(java.lang.String fileName,
                       JobControl jobControl)
Dumps messages to specified file

dumpToStream

public void dumpToStream(java.io.PrintStream out,
                         JobControl jobControl)

elementsUsed

public int elementsUsed()
Get the number of elements in the list

getCurrentMessage

public IReportMessage getCurrentMessage()
Gets the current message, or null if there is no current message

getFirstMessage

public IReportMessage getFirstMessage()
Gets the first message. Returns null if message list is empty

getNextMessage

public IReportMessage getNextMessage()
Gets the next message. Returns null if we are after the end of list

receive

public void receive(IMessage m)
Append the message to the end of list
Specified by:
receive in interface ILogListener
Following copied from interface: com.togethersoft.sca.core.ILogListener
Parameters:
message - the received message.

receive

public void receive(IReportMessage message)
Append the message to the end of list

setCurrentProjectName

public void setCurrentProjectName(java.lang.String projectName)