public class LocalizationKey extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTIFIER_PREFIX
Identifier of localizable strings
|
| Constructor and Description |
|---|
LocalizationKey(String moduleHash,
String identifier,
Serializable[] parameters)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asLocalizableString()
Returns as localizable string with properly encoded parameters.
|
String |
asResourceKey()
Returns the key (module::version::identifier::paramCount) used as key in resource bundle.
|
String |
getIdentifier()
Gets the identifier.
|
String |
getModuleHash()
Gets the module hash.
|
Serializable[] |
getParameters()
Returns the parameters of the localizable string.
|
static LocalizationKey |
parse(String source)
Returns a localizable string object if the source is a valid localizable
string, otherwise null is returned.
|
String |
toString() |
public static final String IDENTIFIER_PREFIX
public LocalizationKey(String moduleHash, String identifier, Serializable[] parameters)
moduleHash - identifier - parameters - public static LocalizationKey parse(String source)
source - source stringpublic String getModuleHash()
public String getIdentifier()
public Serializable[] getParameters()
public String asResourceKey()
public String asLocalizableString()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.