| Modifier and Type | Class and Description |
|---|---|
| public static class | LocaleData.MeasurementSystem
Enumeration for representing the measurement systems. |
| public static class | LocaleData.PaperSize
A class that represents the size of letter head used in the country |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALT_QUOTATION_END
Delimiter type for |
| public static final int | ALT_QUOTATION_START
Delimiter type for |
| private ICUResourceBundle | |
| public static final int | DELIMITER_COUNT
Count of delimiter types for |
| private static final String[] | |
| public static final int | ES_AUXILIARY
EXType for |
| public static final int | ES_COUNT
Count of EXTypes for |
| public static final int | ES_CURRENCY
EXType for |
| public static final int | ES_INDEX
EXType for |
| public static final int | ES_PUNCTUATION
Corresponds to the 'punctuation' CLDR exemplars in http://www.unicode.org/reports/tr35/tr35-general.html#Character_Elements. |
| public static final int | ES_STANDARD
EXType for |
| private static VersionInfo | |
| private ICUResourceBundle | |
| private MissingResourceException | |
| private static final String | |
| private static final String | |
| private boolean | |
| private static final String | |
| private static final String | |
| public static final int | QUOTATION_END
Delimiter type for |
| public static final int | QUOTATION_START
Delimiter type for |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static VersionInfo | |
| public String | Returns: The desired delimiter string.The type of delimiter string desired. Currently,
the valid choices are QUOTATION_START, QUOTATION_END,
ALT_QUOTATION_START, or ALT_QUOTATION_END. type)Retrieves a delimiter string from the locale data. |
| public static UnicodeSet | Returns: The set of exemplar characters for the given locale.Locale for which the exemplar character set
is to be retrieved. locale, int Bitmask for options to apply to the exemplar pattern.
Specify zero to retrieve the exemplar set as it is
defined in the locale data. Specify
UnicodeSet.CASE to retrieve a case-folded exemplar
set. See options)UnicodeSet#applyPattern(String,
int) for a complete list of valid options. The
IGNORE_SPACE bit is always set, regardless of the
value of 'options'.Returns the set of exemplar characters for a locale. |
| public static UnicodeSet | Returns: The set of exemplar characters for the given locale.Locale for which the exemplar character set
is to be retrieved. locale, int Bitmask for options to apply to the exemplar pattern.
Specify zero to retrieve the exemplar set as it is
defined in the locale data. Specify
UnicodeSet.CASE to retrieve a case-folded exemplar
set. See options, int UnicodeSet#applyPattern(String,
int) for a complete list of valid options. The
IGNORE_SPACE bit is always set, regardless of the
value of 'options'.The type of exemplar character set to retrieve. extype)Returns the set of exemplar characters for a locale. |
| public UnicodeSet | Returns: The set of exemplar characters for the given locale. If there is nothing available for the locale, then null is returned ifgetNoSubstitute() is true, otherwise the
root value is returned (which may be UnicodeSet.EMPTY).Bitmask for options to apply to the exemplar pattern.
Specify zero to retrieve the exemplar set as it is
defined in the locale data. Specify
UnicodeSet.CASE to retrieve a case-folded exemplar
set. See options, int UnicodeSet#applyPattern(String,
int) for a complete list of valid options. The
IGNORE_SPACE bit is always set, regardless of the
value of 'options'.The type of exemplar set to be retrieved,
ES_STANDARD, ES_INDEX, ES_AUXILIARY, or ES_PUNCTUATION extype)Returns the set of exemplar characters for a locale. |
| public static final LocaleData | Returns: A locale data object.Locale with thich the locale data object is associated. locale)Gets the LocaleData object associated with the ULocale specified in locale |
| public static final LocaleData | Returns: A locale data object.Gets the LocaleData object associated with the default |
| public String | Returns: locale display pattern as a String.Returns LocaleDisplayPattern for this locale, e.g., {0}({1}) |
| public String | Returns: locale display separator as a char.Returns LocaleDisplaySeparator for this locale. |
| public static final LocaleData. | Returns: MeasurementSystem the measurement system used in the locale.The locale for which the measurement system to be retrieved. locale)Returns the measurement system used in the locale specified by the locale. |
| public boolean | Returns: Value for the no substitute behavior. If true, methods of this locale data object will return an error when no data is available for that method, given the locale ID supplied to the constructor.Gets the "no substitute" behavior of this locale data object. |
| public static final LocaleData. | Returns: The paper size used in the localeThe locale for which the measurement system to be retrieved. locale)Returns the size of paper used in the locale. |
| private static UResourceBundle | measurementTypeBundleForLocale(ULocale locale, String measurementType)
Utility for getMeasurementSystem and getPaperSize |
| public void | setNoSubstitute(boolean
Value for the no substitute behavior. If true,
methods of this locale data object will return
an error when no data is available for that method,
given the locale ID supplied to the constructor. setting)Sets the "no substitute" behavior of this locale data object. |
| ALT_QUOTATION_END | back to summary |
|---|---|
| public static final int ALT_QUOTATION_END Delimiter type for
| |
| ALT_QUOTATION_START | back to summary |
|---|---|
| public static final int ALT_QUOTATION_START Delimiter type for
| |
| bundle | back to summary |
|---|---|
| private ICUResourceBundle bundle | |
| DELIMITER_COUNT | back to summary |
|---|---|
| public static final int DELIMITER_COUNT
Deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. Count of delimiter types for | |
| DELIMITER_TYPES | back to summary |
|---|---|
| private static final String[] DELIMITER_TYPES | |
| ES_AUXILIARY | back to summary |
|---|---|
| public static final int ES_AUXILIARY EXType for
| |
| ES_COUNT | back to summary |
|---|---|
| public static final int ES_COUNT
Deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. Count of EXTypes for | |
| ES_CURRENCY | back to summary |
|---|---|
| public static final int ES_CURRENCY
Deprecated ICU 51 EXType for Note This type is no longer supported. | |
| ES_INDEX | back to summary |
|---|---|
| public static final int ES_INDEX EXType for
| |
| ES_PUNCTUATION | back to summary |
|---|---|
| public static final int ES_PUNCTUATION Corresponds to the 'punctuation' CLDR exemplars in
http://www.unicode.org/reports/tr35/tr35-general.html#Character_Elements.
EXType for
| |
| ES_STANDARD | back to summary |
|---|---|
| public static final int ES_STANDARD EXType for
| |
| gCLDRVersion | back to summary |
|---|---|
| private static VersionInfo gCLDRVersion | |
| langBundle | back to summary |
|---|---|
| private ICUResourceBundle langBundle | |
| langBundleException | back to summary |
|---|---|
| private MissingResourceException langBundleException | |
| LOCALE_DISPLAY_PATTERN | back to summary |
|---|---|
| private static final String LOCALE_DISPLAY_PATTERN | |
| MEASUREMENT_SYSTEM | back to summary |
|---|---|
| private static final String MEASUREMENT_SYSTEM | |
| noSubstitute | back to summary |
|---|---|
| private boolean noSubstitute | |
| PAPER_SIZE | back to summary |
|---|---|
| private static final String PAPER_SIZE | |
| PATTERN | back to summary |
|---|---|
| private static final String PATTERN | |
| QUOTATION_END | back to summary |
|---|---|
| public static final int QUOTATION_END Delimiter type for
| |
| QUOTATION_START | back to summary |
|---|---|
| public static final int QUOTATION_START Delimiter type for
| |
| SEPARATOR | back to summary |
|---|---|
| private static final String SEPARATOR | |
| LocaleData | back to summary |
|---|---|
| private LocaleData() | |
| getCLDRVersion | back to summary |
|---|---|
| public static VersionInfo getCLDRVersion() Returns the current CLDR version
| |
| getDelimiter | back to summary |
|---|---|
| public String getDelimiter(int type) Retrieves a delimiter string from the locale data. | |
| getExemplarSet | back to summary |
|---|---|
| public static UnicodeSet getExemplarSet(ULocale locale, int options) Returns the set of exemplar characters for a locale. Equivalent to calling
| |
| getExemplarSet | back to summary |
|---|---|
| public static UnicodeSet getExemplarSet(ULocale locale, int options, int extype) Returns the set of exemplar characters for a locale.
Equivalent to calling new LocaleData(locale).
| |
| getExemplarSet | back to summary |
|---|---|
| public UnicodeSet getExemplarSet(int options, int extype) Returns the set of exemplar characters for a locale.
| |
| getInstance | back to summary |
|---|---|
| public static final LocaleData getInstance(ULocale locale) Gets the LocaleData object associated with the ULocale specified in locale
| |
| getInstance | back to summary |
|---|---|
| public static final LocaleData getInstance() Gets the LocaleData object associated with the default
| |
| getLocaleDisplayPattern | back to summary |
|---|---|
| public String getLocaleDisplayPattern() Returns LocaleDisplayPattern for this locale, e.g., {0}({1}) | |
| getLocaleSeparator | back to summary |
|---|---|
| public String getLocaleSeparator() Returns LocaleDisplaySeparator for this locale. | |
| getMeasurementSystem | back to summary |
|---|---|
| public static final LocaleData. Returns the measurement system used in the locale specified by the locale.
| |
| getNoSubstitute | back to summary |
|---|---|
| public boolean getNoSubstitute() Gets the "no substitute" behavior of this locale data object.
| |
| getPaperSize | back to summary |
|---|---|
| public static final LocaleData. Returns the size of paper used in the locale. The paper sizes returned are always in milli-meters.
| |
| measurementTypeBundleForLocale | back to summary |
|---|---|
| private static UResourceBundle measurementTypeBundleForLocale(ULocale locale, String measurementType) Utility for getMeasurementSystem and getPaperSize | |
| setNoSubstitute | back to summary |
|---|---|
| public void setNoSubstitute(boolean setting) Sets the "no substitute" behavior of this locale data object.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final LocaleData. | SI
Measurement system specified by Le Système International d'Unités (SI) otherwise known as Metric system. |
| public static final LocaleData. | UK
Mix of metric and imperial units used in Great Britain. |
| public static final LocaleData. | US
Measurement system followed in the United States of America. |
| Access | Constructor and Description |
|---|---|
| private |
| SI | back to summary |
|---|---|
| public static final LocaleData. Measurement system specified by Le Système International d'Unités (SI) otherwise known as Metric system.
| |
| UK | back to summary |
|---|---|
| public static final LocaleData. Mix of metric and imperial units used in Great Britain.
| |
| US | back to summary |
|---|---|
| public static final LocaleData. Measurement system followed in the United States of America.
| |
| MeasurementSystem | back to summary |
|---|---|
| private MeasurementSystem() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int |
| PaperSize | back to summary |
|---|---|
| private PaperSize(int h, int w) | |
| getHeight | back to summary |
|---|---|
| public int getHeight() Returns the height of the paper
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Returns the width of the paper
| |