public class Message extends Object
MessageFactory| Constructor and Description |
|---|
Message(String id,
String defMsg,
String... args)
Construct a Message with a unique identifier, a ready-to-use default
message, in default/server locale (say English) and the args.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String[] |
getArgs() |
String |
getDefaultMessage() |
String |
getId() |
int |
hashCode() |
String |
toString() |
public Message(String id, String defMsg, String... args)
The message id is usually used to lookup a message template string in some message catalog. However this instance doesn't look it up, neither it guarantees that the id is available in a catalog. More generally this class doesn't attempt to load message catalogs at all.
id - the identifier for the message; must not be nulldefMsg - default message with already placed in args in
the default/server locale; must not be nullargs - values for the message template placeholderspublic String getId()
nullpublic String getDefaultMessage()
nullpublic String[] getArgs()
nullCopyright © 2023. All rights reserved.