|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.log.I18NMessage
public abstract class I18NMessage
An internationalized message, represented using a pair of textual
keys referencing the message text; keys-text maps are stored
outside the source code. This key pair comprises a message ID and
an entry ID: the entry ID selects a specific variant of the message
and can be omitted (in which case it defaults to UNKNOWN_ENTRY_ID).
| Field Summary | |
|---|---|
static String |
UNKNOWN_ENTRY_ID
The default entry ID. |
| Constructor Summary | |
|---|---|
I18NMessage(I18NLoggerProxy loggerProxy,
String messageId)
Creates a new internationalized message with the given message ID and the default entry ID. |
|
I18NMessage(I18NLoggerProxy loggerProxy,
String messageId,
String entryId)
Creates a new internationalized message with the given message and entry IDs. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
String |
getEntryId()
Returns the receiver's entry ID. |
I18NLoggerProxy |
getLoggerProxy()
Returns the logger proxy that can log the receiver. |
String |
getMessageId()
Returns the receiver's message ID. |
I18NMessageProvider |
getMessageProvider()
Returns the message provider that can map the receiver. |
abstract int |
getParamCount()
Returns the number of parameters the receiver expects. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String UNKNOWN_ENTRY_ID
| Constructor Detail |
|---|
public I18NMessage(I18NLoggerProxy loggerProxy,
String messageId,
String entryId)
loggerProxy - The logger proxy.messageId - The message ID.entryId - The entry ID.
public I18NMessage(I18NLoggerProxy loggerProxy,
String messageId)
loggerProxy - The logger proxy.messageId - The message ID.| Method Detail |
|---|
public I18NLoggerProxy getLoggerProxy()
public I18NMessageProvider getMessageProvider()
public String getMessageId()
public String getEntryId()
public abstract int getParamCount()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||