java.text.Format to provide
additional ICU protocol, specifically, the getLocale()
API. All ICU format classes are subclasses of this class.
com.ibm.icu.util.ULocale
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | UFormat.SpanField
A field that represents a span of text that may be composed with other fields. |
| Modifier and Type | Field and Description |
|---|---|
| private ULocale | actualLocale
The locale containing data used to construct this object, or null. |
| private static final long | |
| private ULocale | validLocale
The most specific locale containing any resource data, or null. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ULocale | Returns: the information specified by type, or null if this object was not constructed from locale data.type of information requested, either typecom. or com..Return the locale that was used to create this object, or null. |
| pack-priv final void |
| actualLocale | back to summary |
|---|---|
| private ULocale actualLocale The locale containing data used to construct this object, or null.
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| validLocale | back to summary |
|---|---|
| private ULocale validLocale The most specific locale containing any resource data, or null.
| |
| UFormat | back to summary |
|---|---|
| public UFormat() Default constructor.
| |
| getLocale | back to summary |
|---|---|
| public final ULocale getLocale(ULocale. Return the locale that was used to create this object, or null. This may may differ from the locale requested at the time of this object's creation. For example, if an object is created for locale en_US_CALIFORNIA, the actual data may be drawn from en (the actual locale), and en_US may be the most specific locale that exists (the valid locale). Note This method will be implemented in ICU 3.0; ICU 2.8 contains a partial preview implementation. The actual locale is returned correctly, but the valid locale is not, in most cases.
| |
| setLocale | back to summary |
|---|---|
| pack-priv final void setLocale(ULocale valid, ULocale actual) Set information about the locales that were used to create this object. If the object was not constructed from locale data, both arguments should be set to null. Otherwise, neither should be null. The actual locale must be at the same level or less specific than the valid locale. This method is intended for use by factories or other entities that create objects of this class. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SpanField | back to summary |
|---|---|
| protected SpanField(String name) Construct a new instance.
| |