public class GrammaticalLocalizer extends BaseLocalizer
BaseLocalizer.LocalOrGmt| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT_NAME |
CHINESE_LANGUAGE, currencyFormat, dateTimeFormat, EARLIEST, ENGLISH_LANGUAGE, GMT, GMT_TZ, gmtDateFormat, gmtTimeFormat, inputDateTimeFormat, inputGmtDateFormat, inputLocalDateFormat, JAPANESE_LANGUAGE, KOREAN_LANGUAGE, labelSet, LATEST, LOCAL, localDateFormat, localLongDateFormat, localTimeFormat, longDateTimeFormat, messageFormatCache, numberFormat, OLD_EARLIEST, OLD_LATEST| Constructor and Description |
|---|
GrammaticalLocalizer(Locale locale,
Locale currencyLocale,
TimeZone timeZone,
HumanLanguage language,
GrammaticalLabelSet labelSet) |
| Modifier and Type | Method and Description |
|---|---|
Collator |
getCollator() |
Comparator<String> |
getComparator() |
Comparator<String> |
getComparator(int numElements) |
LanguageDeclension |
getDeclension()
NOTE: This probably shouldn't be here, but for now it's a nice way to kill LabelInfo most places
|
String |
getEmailEncoding() |
String |
getFileEncoding() |
String |
getLabel(LabelReference ref) |
String |
getLabel(String section,
Renameable[] entities,
String key) |
String |
getLabel(String section,
Renameable[] entities,
String key,
boolean forMessageFormat) |
String |
getLabel(String section,
Renameable[] entities,
String key,
Object... args) |
String |
getLabel(String section,
String name) |
String |
getLabel(String section,
String name,
boolean forMessageFormat) |
String |
getLabel(String section,
String key,
Object... args)
Convenience function that calls
java.text.MessageFormat.format() on the label
using the Object[] supplied. |
String |
getLabelNoHint(String section,
String name)
The following getLabelNotHint(*) methods are special cased label lookups, so even while in
label debugging mode the current label request WILL NOT appended the label debug info.
|
String |
getLabelNoHint(String section,
String name,
boolean forMessageFormat) |
String |
getLabelNoHint(String section,
String name,
Object... args) |
String |
getLabelNoThrow(LabelReference ref) |
String |
getLabelNoThrow(String section,
Renameable[] entities,
String name) |
String |
getLabelNoThrow(String section,
String name) |
String |
getLabelNoThrow(String section,
String name,
Object... args) |
GrammaticalLabelSet |
getLabelSet() |
String |
getLabelThrow(String section,
String name) |
protected Collator |
makeCollator() |
protected Comparator<String> |
makeComparator() |
doParseDate, doParseNumber, doParseTime, formatDate, formatDateTime, getCalendar, getCalendar, getCalendar, getCurrencyFormat, getCurrencyFormat, getCurrencyFormat, getCurrencyFormat, getCurrencyLocale, getDateFormat, getDateTimeFormat, getGmtTimeFormat, getInputDateFormat, getInputDateTimeFormat, getLanguage, getList, getLocale, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleInputDateFormat, getLocaleInputDateTimeFormat, getLocaleTimeFormat, getLongDateFormat, getLongDateTimeFormat, getMessageFormat, getNumberFormat, getNumberFormat, getNumberFormat, getPercentFormat, getSection, getTimeFormat, getTimeZone, getUserLanguage, isLanguageEnglish, isLanguageJapanese, labelExists, parseCurrency, parseDate, parseDateTime, parseNumber, parsePercentpublic static final String CONTEXT_NAME
public GrammaticalLocalizer(Locale locale, Locale currencyLocale, TimeZone timeZone, HumanLanguage language, GrammaticalLabelSet labelSet)
public GrammaticalLabelSet getLabelSet()
getLabelSet in class BaseLocalizerpublic LanguageDeclension getDeclension()
public String getEmailEncoding()
public String getFileEncoding()
public String getLabel(String section, String name)
getLabel in class BaseLocalizerpublic String getLabelThrow(String section, String name)
getLabelThrow in class BaseLocalizerpublic String getLabelNoHint(String section, String name)
public String getLabel(String section, String key, Object... args)
java.text.MessageFormat.format() on the label
using the Object[] supplied.getLabel in class BaseLocalizersection - same as getLabel(section, key)key - same as getLabel(section, key)args - for java.text.MessageFormat.format()public String getLabel(String section, Renameable[] entities, String key)
public String getLabel(String section, Renameable[] entities, String key, Object... args)
public String getLabelNoThrow(String section, Renameable[] entities, String name)
public String getLabel(String section, Renameable[] entities, String key, boolean forMessageFormat)
public String getLabel(LabelReference ref)
public String getLabelNoThrow(LabelReference ref)
public Collator getCollator()
public Comparator<String> getComparator()
public Comparator<String> getComparator(int numElements)
numElements - the number of elements in the arrayprotected Collator makeCollator()
protected Comparator<String> makeComparator()
Copyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.