Top Inners Fields Constructors Methods
com.ibm.icu.impl.locale

public Class KeyTypeData

extends Object
Class Inheritance
Imports
java.util.Collections, .EnumSet, .HashMap, .HashSet, .LinkedHashMap, .LinkedHashSet, .Map, .MissingResourceException, .Set, java.util.regex.Pattern, com.ibm.icu.impl.ICUData, .ICUResourceBundle, com.ibm.icu.util.Output, .UResourceBundle, .UResourceBundleIterator

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static enum
private static class
private static class
private static class
private static class
private static enum
private abstract static class
private static class
private static class
private static enum
public static enum

Field Summary

Modifier and TypeField and Description
private static Map<String, Set<String>>
pack-priv static Map<String, Set<String>>
pack-priv static Set<String>
private static final Object[][]
private static final Map<String, KeyTypeData.KeyData>
pack-priv static Map<String, KeyTypeData.ValueType>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Set<String>
public static Set<String>
private static void
getKeyInfo(UResourceBundle keyInfoRes)

Reads keyInfo{ deprecated{ kh{"true"} vt{"true"} } valueType{ ca{"incremental"} h0{"single"} kr{"multiple"} vt{"multiple"} x0{"any"} } }

private static void
getTypeInfo(UResourceBundle typeInfoRes)

Reads: typeInfo{ deprecated{ co{ direct{"true"} } tz{ camtr{"true"} } } }

public static KeyTypeData.ValueType
private static void
private static void
public static boolean
public static boolean
public static String
public static String
toBcpType(String key, String type, Output<Boolean> isKnownKey, Output<Boolean> isSpecialType)

public static String
public static String
toLegacyType(String key, String type, Output<Boolean> isKnownKey, Output<Boolean> isSpecialType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BCP47_KEYSback to summary
private static Map<String, Set<String>> BCP47_KEYS
DEPRECATED_KEY_TYPESback to summary
pack-priv static Map<String, Set<String>> DEPRECATED_KEY_TYPES
DEPRECATED_KEYSback to summary
pack-priv static Set<String> DEPRECATED_KEYS
KEY_DATAback to summary
private static final Object[][] KEY_DATA
KEYMAPback to summary
private static final Map<String, KeyTypeData.KeyData> KEYMAP
VALUE_TYPESback to summary
pack-priv static Map<String, KeyTypeData.ValueType> VALUE_TYPES

Constructor Detail

KeyTypeDataback to summary
public KeyTypeData()

Method Detail

getBcp47Keysback to summary
public static Set<String> getBcp47Keys()
getBcp47KeyTypesback to summary
public static Set<String> getBcp47KeyTypes(String key)
getKeyInfoback to summary
private static void getKeyInfo(UResourceBundle keyInfoRes)

Reads keyInfo{ deprecated{ kh{"true"} vt{"true"} } valueType{ ca{"incremental"} h0{"single"} kr{"multiple"} vt{"multiple"} x0{"any"} } }

getTypeInfoback to summary
private static void getTypeInfo(UResourceBundle typeInfoRes)

Reads: typeInfo{ deprecated{ co{ direct{"true"} } tz{ camtr{"true"} } } }

getValueTypeback to summary
public static KeyTypeData.ValueType getValueType(String key)
initFromResourceBundleback to summary
private static void initFromResourceBundle()
initFromTablesback to summary
private static void initFromTables()
Annotations
@SuppressWarnings:unused
isDeprecatedback to summary
public static boolean isDeprecated(String key)
isDeprecatedback to summary
public static boolean isDeprecated(String key, String type)
toBcpKeyback to summary
public static String toBcpKey(String key)
toBcpTypeback to summary
public static String toBcpType(String key, String type, Output<Boolean> isKnownKey, Output<Boolean> isSpecialType)
toLegacyKeyback to summary
public static String toLegacyKey(String key)
toLegacyTypeback to summary
public static String toLegacyType(String key, String type, Output<Boolean> isKnownKey, Output<Boolean> isSpecialType)
com.ibm.icu.impl.locale back to summary

private Class KeyTypeData.CodepointsTypeHandler

extends SpecialTypeHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
Inherited from com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler:
canonicalize

Field Detail

patback to summary
private static final Pattern pat

Constructor Detail

CodepointsTypeHandlerback to summary
private CodepointsTypeHandler()

Method Detail

isWellFormedback to summary
pack-priv boolean isWellFormed(String value)

Implements abstract com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler.isWellFormed.

Annotations
@Override
com.ibm.icu.impl.locale back to summary

private Class KeyTypeData.KeyData

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv String
pack-priv EnumSet<KeyTypeData.SpecialType>
pack-priv Map<String, KeyTypeData.Type>

Constructor Summary

AccessConstructor and Description
pack-priv
KeyData(String legacyId, String bcpId, Map<String, KeyTypeData.Type> typeMap, EnumSet<KeyTypeData.SpecialType> specialTypes)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bcpIdback to summary
pack-priv String bcpId
legacyIdback to summary
pack-priv String legacyId
specialTypesback to summary
pack-priv EnumSet<KeyTypeData.SpecialType> specialTypes
typeMapback to summary
pack-priv Map<String, KeyTypeData.Type> typeMap

Constructor Detail

KeyDataback to summary
pack-priv KeyData(String legacyId, String bcpId, Map<String, KeyTypeData.Type> typeMap, EnumSet<KeyTypeData.SpecialType> specialTypes)
com.ibm.icu.impl.locale back to summary

private final Enum KeyTypeData.KeyInfoType

extends Enum<KeyTypeData.KeyInfoType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final KeyTypeData.KeyInfoType
public static final KeyTypeData.KeyInfoType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static KeyTypeData.KeyInfoType
public static KeyTypeData.KeyInfoType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

deprecatedback to summary
public static final KeyTypeData.KeyInfoType deprecated
valueTypeback to summary
public static final KeyTypeData.KeyInfoType valueType

Constructor Detail

KeyInfoTypeback to summary
private KeyInfoType()

Method Detail

valueOfback to summary
public static KeyTypeData.KeyInfoType valueOf(String name)
valuesback to summary
public static KeyTypeData.KeyInfoType[] values()
com.ibm.icu.impl.locale back to summary

private Class KeyTypeData.PrivateUseKeyValueTypeHandler

extends SpecialTypeHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
Inherited from com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler:
canonicalize

Field Detail

patback to summary
private static final Pattern pat

Constructor Detail

PrivateUseKeyValueTypeHandlerback to summary
private PrivateUseKeyValueTypeHandler()

Method Detail

isWellFormedback to summary
pack-priv boolean isWellFormed(String value)

Implements abstract com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler.isWellFormed.

Annotations
@Override
com.ibm.icu.impl.locale back to summary

private Class KeyTypeData.ReorderCodeTypeHandler

extends SpecialTypeHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
Inherited from com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler:
canonicalize

Field Detail

patback to summary
private static final Pattern pat

Constructor Detail

ReorderCodeTypeHandlerback to summary
private ReorderCodeTypeHandler()

Method Detail

isWellFormedback to summary
pack-priv boolean isWellFormed(String value)

Implements abstract com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler.isWellFormed.

Annotations
@Override
com.ibm.icu.impl.locale back to summary

private Class KeyTypeData.RgKeyValueTypeHandler

extends SpecialTypeHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
Inherited from com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler:
canonicalize

Field Detail

patback to summary
private static final Pattern pat

Constructor Detail

RgKeyValueTypeHandlerback to summary
private RgKeyValueTypeHandler()

Method Detail

isWellFormedback to summary
pack-priv boolean isWellFormed(String value)

Implements abstract com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler.isWellFormed.

Annotations
@Override
com.ibm.icu.impl.locale back to summary

private Class KeyTypeData.ScriptCodeTypeHandler

extends SpecialTypeHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
Inherited from com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler:
canonicalize

Field Detail

patback to summary
private static final Pattern pat

Constructor Detail

ScriptCodeTypeHandlerback to summary
private ScriptCodeTypeHandler()

Method Detail

isWellFormedback to summary
pack-priv boolean isWellFormed(String value)

Implements abstract com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler.isWellFormed.

Annotations
@Override
com.ibm.icu.impl.locale back to summary

private final Enum KeyTypeData.SpecialType

extends Enum<KeyTypeData.SpecialType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final KeyTypeData.SpecialType
pack-priv KeyTypeData.SpecialTypeHandler
public static final KeyTypeData.SpecialType
public static final KeyTypeData.SpecialType
public static final KeyTypeData.SpecialType
public static final KeyTypeData.SpecialType
public static final KeyTypeData.SpecialType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static KeyTypeData.SpecialType
public static KeyTypeData.SpecialType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CODEPOINTSback to summary
public static final KeyTypeData.SpecialType CODEPOINTS
handlerback to summary
pack-priv KeyTypeData.SpecialTypeHandler handler
PRIVATE_USEback to summary
public static final KeyTypeData.SpecialType PRIVATE_USE
REORDER_CODEback to summary
public static final KeyTypeData.SpecialType REORDER_CODE
RG_KEY_VALUEback to summary
public static final KeyTypeData.SpecialType RG_KEY_VALUE
SCRIPT_CODEback to summary
public static final KeyTypeData.SpecialType SCRIPT_CODE
SUBDIVISION_CODEback to summary
public static final KeyTypeData.SpecialType SUBDIVISION_CODE

Constructor Detail

SpecialTypeback to summary
private SpecialType(KeyTypeData.SpecialTypeHandler handler)

Method Detail

valueOfback to summary
public static KeyTypeData.SpecialType valueOf(String name)
valuesback to summary
public static KeyTypeData.SpecialType[] values()
com.ibm.icu.impl.locale back to summary

private abstract Class KeyTypeData.SpecialTypeHandler

extends Object
Class Inheritance
Known Direct Subclasses
com.ibm.icu.impl.locale.KeyTypeData.CodepointsTypeHandler, com.ibm.icu.impl.locale.KeyTypeData.ReorderCodeTypeHandler, com.ibm.icu.impl.locale.KeyTypeData.RgKeyValueTypeHandler, com.ibm.icu.impl.locale.KeyTypeData.ScriptCodeTypeHandler, com.ibm.icu.impl.locale.KeyTypeData.SubdivisionKeyValueTypeHandler, com.ibm.icu.impl.locale.KeyTypeData.PrivateUseKeyValueTypeHandler

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv String
pack-priv abstract boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SpecialTypeHandlerback to summary
private SpecialTypeHandler()

Method Detail

canonicalizeback to summary
pack-priv String canonicalize(String value)
isWellFormedback to summary
pack-priv abstract boolean isWellFormed(String value)
com.ibm.icu.impl.locale back to summary

private Class KeyTypeData.SubdivisionKeyValueTypeHandler

extends SpecialTypeHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
Inherited from com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler:
canonicalize

Field Detail

patback to summary
private static final Pattern pat

Constructor Detail

SubdivisionKeyValueTypeHandlerback to summary
private SubdivisionKeyValueTypeHandler()

Method Detail

isWellFormedback to summary
pack-priv boolean isWellFormed(String value)

Implements abstract com.ibm.icu.impl.locale.KeyTypeData.SpecialTypeHandler.isWellFormed.

Annotations
@Override
com.ibm.icu.impl.locale back to summary

private Class KeyTypeData.Type

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv String

Constructor Summary

AccessConstructor and Description
pack-priv
Type(String legacyId, String bcpId)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bcpIdback to summary
pack-priv String bcpId
legacyIdback to summary
pack-priv String legacyId

Constructor Detail

Typeback to summary
pack-priv Type(String legacyId, String bcpId)
com.ibm.icu.impl.locale back to summary

private final Enum KeyTypeData.TypeInfoType

extends Enum<KeyTypeData.TypeInfoType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final KeyTypeData.TypeInfoType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static KeyTypeData.TypeInfoType
public static KeyTypeData.TypeInfoType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

deprecatedback to summary
public static final KeyTypeData.TypeInfoType deprecated

Constructor Detail

TypeInfoTypeback to summary
private TypeInfoType()

Method Detail

valueOfback to summary
public static KeyTypeData.TypeInfoType valueOf(String name)
valuesback to summary
public static KeyTypeData.TypeInfoType[] values()
com.ibm.icu.impl.locale back to summary

public final Enum KeyTypeData.ValueType

extends Enum<KeyTypeData.ValueType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final KeyTypeData.ValueType
public static final KeyTypeData.ValueType
public static final KeyTypeData.ValueType
public static final KeyTypeData.ValueType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static KeyTypeData.ValueType
public static KeyTypeData.ValueType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

anyback to summary
public static final KeyTypeData.ValueType any
incrementalback to summary
public static final KeyTypeData.ValueType incremental
multipleback to summary
public static final KeyTypeData.ValueType multiple
singleback to summary
public static final KeyTypeData.ValueType single

Constructor Detail

ValueTypeback to summary
private ValueType()

Method Detail

valueOfback to summary
public static KeyTypeData.ValueType valueOf(String name)
valuesback to summary
public static KeyTypeData.ValueType[] values()