public class AuthorResourceBundleImpl extends java.lang.Object implements AuthorResourceBundle
Constructor and Description |
---|
AuthorResourceBundleImpl(java.util.Properties properties)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
composeMessage(java.lang.String descriptionWithEditorVariables)
Compose a message for the given description which may contain more than one keys referenced using editor variables.
|
java.lang.String |
getMessage(java.lang.String key)
Gets a message for the given key from this resource bundle.
|
public AuthorResourceBundleImpl(java.util.Properties properties)
properties
- The properties containing the translations.public java.lang.String getMessage(java.lang.String key)
AuthorResourceBundle
getMessage
in interface AuthorResourceBundle
key
- The key for the desired stringAuthorResourceBundle.getMessage(java.lang.String)
public java.lang.String composeMessage(java.lang.String descriptionWithEditorVariables)
AuthorResourceBundle
composeMessage
in interface AuthorResourceBundle
descriptionWithEditorVariables
- the key for the desired string.
Example:
The description: '${i18n(key1)} and ${i18n(key2)}' will be composed to:
'value1 and value2' where 'value1' is obtained by calling getMessage('key1').AuthorResourceBundle.composeMessage(java.lang.String)
© Copyright Syncro Soft SRL 2002 - 2014.