public abstract static class ICULocaleService.LocaleKeyFactory extends Object implements ICUService.Factory
| Modifier and Type | Field and Description |
|---|---|
static boolean |
INVISIBLE |
protected String |
name |
protected boolean |
visible |
static boolean |
VISIBLE |
| Modifier | Constructor and Description |
|---|---|
protected |
LocaleKeyFactory(boolean visible)
Constructor used by subclasses.
|
protected |
LocaleKeyFactory(boolean visible,
String name)
Constructor used by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
create(ICUService.Key key,
ICUService service)
Implement superclass abstract method.
|
String |
getDisplayName(String id,
ULocale locale)
Return a localized name for the locale represented by id.
|
protected Set<String> |
getSupportedIDs()
Return the set of ids that this factory supports (visible or
otherwise).
|
protected Object |
handleCreate(ULocale loc,
int kind,
ICUService service)
Utility method used by create(Key, ICUService).
|
protected boolean |
handlesKey(ICUService.Key key) |
protected boolean |
isSupportedID(String id)
Return true if this id is one the factory supports (visible or
otherwise).
|
String |
toString()
For debugging.
|
void |
updateVisibleIDs(Map<String,ICUService.Factory> result)
Override of superclass method.
|
protected final String name
protected final boolean visible
public static final boolean VISIBLE
public static final boolean INVISIBLE
protected LocaleKeyFactory(boolean visible)
protected LocaleKeyFactory(boolean visible,
String name)
public Object create(ICUService.Key key, ICUService service)
create in interface ICUService.Factoryprotected boolean handlesKey(ICUService.Key key)
public void updateVisibleIDs(Map<String,ICUService.Factory> result)
updateVisibleIDs in interface ICUService.Factorypublic String getDisplayName(String id, ULocale locale)
getDisplayName in interface ICUService.Factoryprotected Object handleCreate(ULocale loc, int kind, ICUService service)
protected boolean isSupportedID(String id)
protected Set<String> getSupportedIDs()