| java.lang.Object org.apache.lenya.cms.usecase.UsecaseMessage
UsecaseMessage | public class UsecaseMessage (Code) | | A message in a usecase. This an encapsulation for an internationalizable
message, containing a message content and potentially some parameters. The
parameters correspond to the placeholders in dictionary entries.
version: $Id: UsecaseMessage.java 571600 2007-08-31 21:40:20Z rfrovarp $ |
UsecaseMessage | public UsecaseMessage(String _message)(Code) | | Ctor.
Parameters: _message - The message. |
UsecaseMessage | public UsecaseMessage(String _message, String[] _params)(Code) | | Ctor.
Parameters: _message - The message. Parameters: _params - The parameters. |
getMessage | public String getMessage()(Code) | | Retrieve the message content
the message |
getParameters | public String[] getParameters()(Code) | | Returns the parameters of this message. If no parameters are set,
an empty String array is returned.
the parameters |
hasParameters | public boolean hasParameters()(Code) | | Determine if this message has parameters
true if the message has parameters |
toString | public String toString()(Code) | | A string representation, the parameters are included as a comma-separated list. |
|
|