|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.yosokumo.core.Message
public class Message
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. |
Field Summary | |
---|---|
private java.lang.String |
text
The message text. |
private Message.Type |
type
The type of message. |
Constructor Summary | |
---|---|
Message(Message.Type type,
java.lang.String text)
Initializes a newly created Message object with attributes
specified by the input parameters. |
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 |
Field Detail |
---|
private Message.Type type
private java.lang.String text
Constructor Detail |
---|
Message(Message.Type type, java.lang.String text)
Message
object with attributes
specified by the input parameters.
type
- the type of the message: INFORMATION or ERROR.text
- the text of the message.Method Detail |
---|
public java.lang.String getText()
public Message.Type getType()
public java.lang.String toString()
Message
.
toString
in class java.lang.Object
Message
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |