Package com.pingidentity.sdk.locale
Class Message
- java.lang.Object
-
- com.pingidentity.sdk.locale.Message
-
public class Message extends Object
An data structure to hold a message key and its message parameters. It can also contain other nested messages that have their own message key and parameters. This class is intended to be consumed byLanguagePackMessageswhere the message key should refer to a key found in pingfederate-message.properties.- Since:
- 9.3
-
-
Constructor Summary
Constructors Constructor Description Message(String messageKey)Construct an instance of Message with just a message keyMessage(String messageKey, String[] params)Construct an instance of Message with a message key and associated message parametersMessage(String messageKey, String[] params, List<Message> nestedMessages)Construct an instance of Message with a message key, associated message parameters and a list of nested messages
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessageKey()Accessor for the messageKeyList<Message>getNestedMessages()Accessor of nestedMessage parameterString[]getParams()Accessor of params
-
-
-
Constructor Detail
-
Message
public Message(String messageKey)
Construct an instance of Message with just a message key- Parameters:
messageKey- The key of the message
-
Message
public Message(String messageKey, String[] params)
Construct an instance of Message with a message key and associated message parameters- Parameters:
messageKey- The key of the messageparams- The parameters to be substituted into the message
-
Message
public Message(String messageKey, String[] params, List<Message> nestedMessages)
Construct an instance of Message with a message key, associated message parameters and a list of nested messages- Parameters:
messageKey- The key of the messageparams- The parameters to be substituted into the messagenestedMessages- The list of nested messages associated with this one
-
-