|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.message.AbstractMessage
public abstract class AbstractMessage
| Field Summary | |
|---|---|
protected MessageContext |
context
|
protected String |
id
|
protected String[] |
params
|
protected String |
tokenMarker
|
protected Map<String,String> |
tokens
|
| Constructor Summary | |
|---|---|
AbstractMessage(int id,
MessageContext context)
|
|
AbstractMessage(int id,
MessageContext context,
Map<String,String> tokens)
|
|
AbstractMessage(int id,
MessageContext context,
Map<String,String> tokens,
String[] params)
|
|
AbstractMessage(String id,
MessageContext context)
|
|
AbstractMessage(String id,
MessageContext context,
Map<String,String> tokens)
|
|
AbstractMessage(String id,
MessageContext context,
Map<String,String> tokens,
String[] params)
|
|
| Method Summary | |
|---|---|
MessageContext |
getContext()
Gets the message context for this message. |
String |
getId()
Gets the unique ID of this message. |
String[] |
getParams()
Gets params for this message. |
String |
getText(Locale loc)
Gets the message text this message object represents. |
Map<String,String> |
getTokens()
Gets tokens or placeholders for this message. |
void |
setTokenMarker(String tokenMarker)
|
void |
setTokens(Map<String,String> tokens)
Sets tokens or placeholders for this message. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String id
protected MessageContext context
protected Map<String,String> tokens
protected String tokenMarker
protected String[] params
| Constructor Detail |
|---|
public AbstractMessage(String id,
MessageContext context)
public AbstractMessage(String id,
MessageContext context,
Map<String,String> tokens)
public AbstractMessage(String id,
MessageContext context,
Map<String,String> tokens,
String[] params)
public AbstractMessage(int id,
MessageContext context)
public AbstractMessage(int id,
MessageContext context,
Map<String,String> tokens)
public AbstractMessage(int id,
MessageContext context,
Map<String,String> tokens,
String[] params)
| Method Detail |
|---|
public String getId()
Message
getId in interface Messagepublic Map<String,String> getTokens()
Message
getTokens in interface Messagepublic MessageContext getContext()
Message
getContext in interface Messagepublic String[] getParams()
Message
getParams in interface Messagepublic void setTokenMarker(String tokenMarker)
public void setTokens(Map<String,String> tokens)
Message
setTokens in interface Messagetokens - The tokens for this message.public String getText(Locale loc)
Message
getText in interface Messageloc - The locale of the message.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||