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