public final class LocaleString
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Constructor and Description |
---|
LocaleString() |
LocaleString(java.util.Locale locale,
java.lang.String text) |
LocaleString(java.lang.String overall) |
Modifier and Type | Method and Description |
---|---|
LocaleString |
clone()
Clone this LocaleString; the result will have its own locale sensitive map.
|
boolean |
containsLocale(java.util.Locale locale_) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
get(java.util.Locale locale) |
java.lang.String |
get(java.lang.String locale) |
java.util.Set<java.util.Locale> |
getLocales()
Get the Locale keys for this LocaleString.
|
java.lang.String |
getLocalizeExpressionString() |
java.util.Set<java.lang.String> |
getStringLocales() |
int |
hashCode() |
boolean |
isExpression() |
void |
put(java.util.Locale locale,
java.lang.String text) |
void |
put(java.lang.String text) |
void |
put(java.lang.String locale,
java.lang.String text) |
java.lang.String |
retrieveValueForLocaleOrFirstAvailable(java.util.Locale targetLocale)
Returns the localized value for the given locale, if available.
|
java.lang.String |
retrieveValueForUserLocaleOrPrimary(java.util.Locale userLocale,
java.util.Locale primaryLocale)
Returns the localized value for the user's locale, if available.
|
java.lang.String |
retrieveValueForUserLocaleOrPrimary(java.util.Locale userLocale,
SiteLocaleSettings sls)
Deprecated.
This method will be removed in a future release. Use
retrieveValueForUserLocaleOrPrimary(Locale, Locale) instead.
|
java.lang.String |
toEncodedString() |
java.lang.String |
toString()
Returns a string representation of the given
LocaleString object. |
public LocaleString()
public LocaleString(java.util.Locale locale, java.lang.String text)
public LocaleString(java.lang.String overall)
public final java.lang.String get(java.util.Locale locale)
public final java.lang.String get(java.lang.String locale)
@Deprecated public final java.lang.String retrieveValueForUserLocaleOrPrimary(java.util.Locale userLocale, SiteLocaleSettings sls)
public final java.lang.String retrieveValueForUserLocaleOrPrimary(java.util.Locale userLocale, java.util.Locale primaryLocale)
public final java.lang.String retrieveValueForLocaleOrFirstAvailable(java.util.Locale targetLocale)
null
.public final void put(java.lang.String text)
public final void put(java.util.Locale locale, java.lang.String text)
public final void put(java.lang.String locale, java.lang.String text)
public final java.lang.String toEncodedString()
public java.util.Set<java.util.Locale> getLocales()
java.lang.IllegalStateException
- if an invalid Locale is encounteredpublic java.lang.String toString()
LocaleString
object. The returned
string representation is suitable for logging or debugging. This should NOT be used for
outputting the string to the end-user.toString
in class java.lang.Object
public boolean isExpression()
public java.lang.String getLocalizeExpressionString()
public java.util.Set<java.lang.String> getStringLocales()
public boolean containsLocale(java.util.Locale locale_)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public LocaleString clone()
clone
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.