com.yosokumo.core
Class Message

java.lang.Object
  extended by com.yosokumo.core.Message

public class Message
extends java.lang.Object

A text message with a type indicating if the message is information or an error. Some responses from the Yokosumo service return messages, especially in case of error.


Nested Class Summary
static class Message.Type
          Indicates whether the message is informational or an error message.
 
Method Summary
 java.lang.String getText()
          Return the message text.
 Message.Type getType()
          Return the message type.
 java.lang.String toString()
          Return a string representation of this Message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getText

public java.lang.String getText()
Return the message text.

Returns:
the text of the message.

getType

public Message.Type getType()
Return the message type.

Returns:
the type of this message.

toString

public java.lang.String toString()
Return a string representation of this Message.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this Message.