| java.lang.Object net.xoetrope.xui.helper.MessageHelper
MessageHelper | public class MessageHelper (Code) | | Formats messages (for 1.1.x JDKs)
Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
version: $Revision: 1.9 $ |
Constructor Summary | |
public | MessageHelper() Setup this helper object. |
MessageHelper | public MessageHelper()(Code) | | Setup this helper object. getInstance or the XProject getMessageHelper method
should be used instead of calling this constructor.
|
getInstance | public static MessageHelper getInstance()(Code) | | Get an instance of the message helper
|
getNextToken | public static String getNextToken(String message)(Code) | | Get the next token in the message
Parameters: message - the raw message the first token |
replaceToken | public static String replaceToken(String message, String key, String replacement)(Code) | | Replace the tokens in a message
Parameters: message - the raw messsage Parameters: key - the raw messsage the key/token to lookup/replace Parameters: replacement - the value to replace the token the precessed message |
replaceTokens | public static String replaceTokens(String message, String replacement)(Code) | | Replace parts of a message
Parameters: message - the raw message Parameters: replacement - the replace for the tokens the processed message |
replaceTokens | public static String replaceTokens(String message)(Code) | | Replace/Strip the tokens in a message
Parameters: message - the raw messsage the precessed message |
|
|