SCCT.JavaSubscriber
Class SCCT_MessagePackage

java.lang.Object
  extended by SCCT.JavaSubscriber.SCCT_AbstractPackage
      extended by SCCT.JavaSubscriber.SCCT_AbstractDataPackage
          extended by SCCT.JavaSubscriber.SCCT_MessagePackage

public class SCCT_MessagePackage
extends SCCT_AbstractDataPackage

This class represents a message package. Each message is composed of a String (the message) and an int (the message code).


Constructor Summary
SCCT_MessagePackage(java.lang.String message, int code)
           
 
Method Summary
 java.lang.String getMessage()
          Gets the message sent by the producer.
 int getMessageCode()
          Gets the message code sent by the producer.
 
Methods inherited from class SCCT.JavaSubscriber.SCCT_AbstractDataPackage
getSourceDescription, getSourceId
 
Methods inherited from class SCCT.JavaSubscriber.SCCT_AbstractPackage
getCalendar, getPackageNumber
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCCT_MessagePackage

public SCCT_MessagePackage(java.lang.String message,
                           int code)
Method Detail

getMessage

public java.lang.String getMessage()
Gets the message sent by the producer.

Returns:
A string representing the message.

getMessageCode

public int getMessageCode()
Gets the message code sent by the producer.

Returns:
The message code.