public class Message
extends java.lang.Object
MessageBundle
Constructor and Description |
---|
Message(java.lang.String s)
Pass in a string that needs to be parsed to product the message class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Return the key of the message
|
java.util.Locale |
getLocale() |
java.lang.String |
getMessage()
Return the actual message string
|
java.lang.String |
getMessage(java.lang.Object arg)
Return the message string with the specified object substituted for any place holders
in the message string.
|
java.lang.String |
getMessage(java.lang.Object[] args)
Return the message string with the specified array of objects substituted for
any place holders in the message string.
|
void |
setLocale(java.util.Locale loc) |
void |
setMessage(java.lang.String s)
Set the message string.
|
java.lang.String |
toString()
Dump the contents of a message class.
|
public Message(java.lang.String s)
public java.lang.String getKey()
public java.lang.String getMessage()
public java.lang.String getMessage(java.lang.Object[] args)
public java.lang.String getMessage(java.lang.Object arg)
public void setMessage(java.lang.String s)
public java.lang.String toString()
toString
in class java.lang.Object
public void setLocale(java.util.Locale loc)
public java.util.Locale getLocale()