org.hackystat.sensor.xmldata
Class MessageDelegate

java.lang.Object
  extended by org.hackystat.sensor.xmldata.MessageDelegate

public class MessageDelegate
extends java.lang.Object

The class which is delegated to by options and the controller when displaying informative messages to the user. This class wraps the way information is displayed to allow the extension of messaging if the mutliple views are added to this sensor, which is currently command-line only.

Author:
aito

Constructor Summary
MessageDelegate(XmlDataController controller)
          Constructs this delegate class with the specified controller.
 
Method Summary
 void fireMessage(java.lang.String message)
          Displays the specified message.
 void fireMessage(java.lang.String message, java.lang.String verboseMessage)
          Displays the specified message is verbose mode is disabled or the verbose message if verbose mode is enabled.
 void fireVerboseMessage(java.lang.String message)
          Displays the specified message if verbose mode is enabled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDelegate

public MessageDelegate(XmlDataController controller)
Constructs this delegate class with the specified controller.

Parameters:
controller - the controller that delegates to this class.
Method Detail

fireMessage

public void fireMessage(java.lang.String message)
Displays the specified message. The same message is displayed even if the verbose option is enabled.

Parameters:
message - the specified message to display.

fireVerboseMessage

public void fireVerboseMessage(java.lang.String message)
Displays the specified message if verbose mode is enabled.

Parameters:
message - the specified message to display.

fireMessage

public void fireMessage(java.lang.String message,
                        java.lang.String verboseMessage)
Displays the specified message is verbose mode is disabled or the verbose message if verbose mode is enabled.

Parameters:
message - the specified message.
verboseMessage - the specified verbose message.