| java.lang.Object com.ibm.icu.util.LocaleData
LocaleData | final public class LocaleData (Code) | | A class for accessing miscelleneous data in the locale bundles
author: ram |
Inner Class :final public static class MeasurementSystem | |
Inner Class :final public static class PaperSize | |
Method Summary | |
public String | getDelimiter(int type) Retrieves a delimiter string from the locale data.
Parameters: type - The type of delimiter string desired. | public static UnicodeSet | getExemplarSet(ULocale locale, int options) Returns the set of exemplar characters for a locale.
Parameters: locale - Locale for which the exemplar character setis to be retrieved. Parameters: options - Bitmask for options to apply to the exemplar pattern.Specify zero to retrieve the exemplar set as it isdefined in the locale data. | public UnicodeSet | getExemplarSet(int options, int extype) Returns the set of exemplar characters for a locale.
Parameters: options - Bitmask for options to apply to the exemplar pattern.Specify zero to retrieve the exemplar set as it isdefined in the locale data. | final public static LocaleData | getInstance(ULocale locale) Gets the LocaleData object associated with the ULocale specified in locale
Parameters: locale - Locale with thich the locale data object is associated. | final public static LocaleData | getInstance() | final public static MeasurementSystem | getMeasurementSystem(ULocale locale) Returns the measurement system used in the locale specified by the locale.
Parameters: locale - The locale for which the measurement system to be retrieved. | public boolean | getNoSubstitute() Gets the "no substitute" behavior of this locale data object.
Value for the no substitute behavior. | final public static PaperSize | getPaperSize(ULocale locale) Returns the size of paper used in the locale. | public void | setNoSubstitute(boolean setting) Sets the "no substitute" behavior of this locale data object.
Parameters: setting - Value for the no substitute behavior. |
getDelimiter | public String getDelimiter(int type)(Code) | | Retrieves a delimiter string from the locale data.
Parameters: type - The type of delimiter string desired. Currently,the valid choices are QUOTATION_START, QUOTATION_END,ALT_QUOTATION_START, or ALT_QUOTATION_END. The desired delimiter string. |
getExemplarSet | public static UnicodeSet getExemplarSet(ULocale locale, int options)(Code) | | Returns the set of exemplar characters for a locale.
Parameters: locale - Locale for which the exemplar character setis to be retrieved. Parameters: options - Bitmask for options to apply to the exemplar pattern.Specify zero to retrieve the exemplar set as it isdefined in the locale data. SpecifyUnicodeSet.CASE to retrieve a case-folded exemplarset. See UnicodeSet.applyPattern(Stringint) for a complete list of valid options. TheIGNORE_SPACE bit is always set, regardless of thevalue of 'options'. The set of exemplar characters for the given locale. |
getExemplarSet | public UnicodeSet getExemplarSet(int options, int extype)(Code) | | Returns the set of exemplar characters for a locale.
Parameters: options - Bitmask for options to apply to the exemplar pattern.Specify zero to retrieve the exemplar set as it isdefined in the locale data. SpecifyUnicodeSet.CASE to retrieve a case-folded exemplarset. See UnicodeSet.applyPattern(Stringint) for a complete list of valid options. TheIGNORE_SPACE bit is always set, regardless of thevalue of 'options'. Parameters: extype - The type of exemplar set to be retrieved,ES_STANDARD or ES_AUXILIARY The set of exemplar characters for the given locale. |
getInstance | final public static LocaleData getInstance(ULocale locale)(Code) | | Gets the LocaleData object associated with the ULocale specified in locale
Parameters: locale - Locale with thich the locale data object is associated. A locale data object. |
getInstance | final public static LocaleData getInstance()(Code) | | Gets the LocaleData object associated with the default locale
A locale data object. |
getMeasurementSystem | final public static MeasurementSystem getMeasurementSystem(ULocale locale)(Code) | | Returns the measurement system used in the locale specified by the locale.
Parameters: locale - The locale for which the measurement system to be retrieved. MeasurementSystem the measurement system used in the locale. |
getNoSubstitute | public boolean getNoSubstitute()(Code) | | Gets the "no substitute" behavior of this locale data object.
Value for the no substitute behavior. If TRUE,methods of this locale data object will returnan error when no data is available for that method,given the locale ID supplied to the constructor. |
getPaperSize | final public static PaperSize getPaperSize(ULocale locale)(Code) | | Returns the size of paper used in the locale. The paper sizes returned are always in
milli-meters.
Parameters: locale - The locale for which the measurement system to be retrieved. The paper size used in the locale |
setNoSubstitute | public void setNoSubstitute(boolean setting)(Code) | | Sets the "no substitute" behavior of this locale data object.
Parameters: setting - Value for the no substitute behavior. If TRUE,methods of this locale data object will returnan error when no data is available for that method,given the locale ID supplied to the constructor. |
|
|