Class LocaleValidityChecker
java.lang.Object
com.ibm.icu.impl.locale.LocaleValidityChecker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Set<ValidIdentifiers.Datasubtype> (package private) static final Set<ValidIdentifiers.Datasubtype> (package private) static Patternprivate static final Pattern -
Constructor Summary
ConstructorsConstructorDescriptionLocaleValidityChecker(ValidIdentifiers.Datasubtype... datasubtypes) LocaleValidityChecker(Set<ValidIdentifiers.Datasubtype> datasubtypes) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisScriptReorder(String subtag) private booleanisSubdivision(ULocale locale, String subtag) private booleanisValid(ValidIdentifiers.Datatype datatype, String code, LocaleValidityChecker.Where where) booleanisValid(ULocale locale, LocaleValidityChecker.Where where) private booleanisValidLocale(String extensionString, LocaleValidityChecker.Where where) private booleanisValidU(ULocale locale, ValidIdentifiers.Datatype datatype, String extensionString, LocaleValidityChecker.Where where)
-
Field Details
-
datasubtypes
-
allowsDeprecated
private final boolean allowsDeprecated -
SEPARATOR
-
VALID_X
-
REORDERING_INCLUDE
-
REORDERING_EXCLUDE
-
REGULAR_ONLY
-
-
Constructor Details
-
LocaleValidityChecker
-
LocaleValidityChecker
-
-
Method Details
-
getDatasubtypes
- Returns:
- the datasubtypes
-
isValid
-
isValidU
private boolean isValidU(ULocale locale, ValidIdentifiers.Datatype datatype, String extensionString, LocaleValidityChecker.Where where) - Parameters:
locale-datatype-where-extension-- Returns:
-
isSubdivision
-
isScriptReorder
- Parameters:
subtag-- Returns:
-
isValidLocale
- Parameters:
extensionString-where-- Returns:
-
isValid
private boolean isValid(ValidIdentifiers.Datatype datatype, String code, LocaleValidityChecker.Where where) - Parameters:
datatype-code-where-- Returns:
-