com.metamatrix.api.core.message
Interface Message

All Known Implementing Classes:
DefaultMessage

public interface Message

Message is intended for situations where there is a need to couple a message's text with a related message type and target object.

Since:
3.0

Method Summary
 java.lang.Object getTarget()
          Gets the target object to which this message refers.
 java.lang.String getText()
          Gets the message text.
 int getType()
          Gets the message type.
 

Method Detail

getTarget

java.lang.Object getTarget()
Gets the target object to which this message refers. For example, in the case of an error message, the target would probably refer to the source of the error.

Returns:
The message target

getText

java.lang.String getText()
Gets the message text.

Returns:
The message text

getType

int getType()
Gets the message type.

Returns:
The message type


Copyright © 2009. All Rights Reserved.