|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.resources.impl.BasicMessage org.apache.commons.resources.impl.DatabaseBasicMessage
public class DatabaseBasicMessage
BasicMessage to allow standard ORM configuration (no complex keys).
Constructor Summary | |
---|---|
DatabaseBasicMessage()
Default Constructor. |
|
DatabaseBasicMessage(String locale,
String key,
Object[] values)
Construct a message for a specified Locale with the specified replacement values. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compare this message to another. |
String |
getLocale()
Return the locale for the message. |
String |
getValue()
Return the replacement value for the message. |
int |
hashCode()
Return the hashcode for the message. |
void |
setLocale(String locale)
Set the locale for the message. |
void |
setValue(String value)
Set a replacement value for the message. |
Methods inherited from class org.apache.commons.resources.impl.BasicMessage |
---|
getKey, getResourcesName, getValues, setKey, setResourcesName, setValues, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatabaseBasicMessage()
public DatabaseBasicMessage(String locale, String key, Object[] values)
locale
- Locale for this messagekey
- Message key for this messagevalues
- Array of replacement valuesMethod Detail |
---|
public String getLocale()
public void setLocale(String locale)
locale
- The locale to set.public void setValue(String value)
value
- The replacement value.public String getValue()
public boolean equals(Object obj)
equals
in class Object
obj
- The message to compare.
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |