Package com.pingidentity.sdk.locale
Class Message
java.lang.Object
com.pingidentity.sdk.locale.Message
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 by
LanguagePackMessages where the message key should refer to a key found in
pingfederate-message.properties.- Since:
- 9.3
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an instance of Message with just a message keyConstruct an instance of Message with a message key and associated message parametersConstruct an instance of Message with a message key, associated message parameters and a list of nested messages -
Method Summary
Modifier and TypeMethodDescriptionAccessor for the messageKeyAccessor of nestedMessage parameterString[]Accessor of params
-
Constructor Details
-
Message
Construct an instance of Message with just a message key- Parameters:
messageKey- The key of the message
-
Message
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
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
-
-
Method Details
-
getMessageKey
Accessor for the messageKey- Returns:
- The key of the message
-
getParams
Accessor of params- Returns:
- The parameters to be substituted into the message
-
getNestedMessages
Accessor of nestedMessage parameter- Returns:
- List of nested messages associated with this one
-