Package com.ibm.icu.text
Enum SpoofChecker.RestrictionLevel
- All Implemented Interfaces:
Serializable
,Comparable<SpoofChecker.RestrictionLevel>
,java.lang.constant.Constable
- Enclosing class:
SpoofChecker
Constants from UTS 39 for use in setRestrictionLevel.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll characters in the string are in the identifier profile and all characters in the string are in the ASCII range.The string classifies as Single Script, or all characters in the string are in the identifier profile and the string is covered by any of the following sets of scripts, according to the definition in UTS 39 section 5.1: Latin + Han + Bopomofo (or equivalently: Latn + Hanb) Latin + Han + Hiragana + Katakana (or equivalently: Latn + Jpan) Latin + Han + Hangul (or equivalently: Latn +Kore)All characters in the string are in the identifier profile.The string classifies as Highly Restrictive, or all characters in the string are in the identifier profile and the string is covered by Latin and any one other Recommended or Aspirational script, except Cyrillic, Greek, and Cherokee.The string classifies as ASCII-Only, or all characters in the string are in the identifier profile and the string is single-script, according to the definition in UTS 39 section 5.1.Any valid identifiers, including characters outside of the Identifier Profile, such as I♥NY.org -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static SpoofChecker.RestrictionLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ASCII
All characters in the string are in the identifier profile and all characters in the string are in the ASCII range. -
SINGLE_SCRIPT_RESTRICTIVE
The string classifies as ASCII-Only, or all characters in the string are in the identifier profile and the string is single-script, according to the definition in UTS 39 section 5.1. -
HIGHLY_RESTRICTIVE
The string classifies as Single Script, or all characters in the string are in the identifier profile and the string is covered by any of the following sets of scripts, according to the definition in UTS 39 section 5.1:- Latin + Han + Bopomofo (or equivalently: Latn + Hanb)
- Latin + Han + Hiragana + Katakana (or equivalently: Latn + Jpan)
- Latin + Han + Hangul (or equivalently: Latn +Kore)
-
MODERATELY_RESTRICTIVE
The string classifies as Highly Restrictive, or all characters in the string are in the identifier profile and the string is covered by Latin and any one other Recommended or Aspirational script, except Cyrillic, Greek, and Cherokee. -
MINIMALLY_RESTRICTIVE
All characters in the string are in the identifier profile. Allow arbitrary mixtures of scripts, such as Ωmega, Teχ, HλLF-LIFE, Toys-Я-Us. -
UNRESTRICTIVE
Any valid identifiers, including characters outside of the Identifier Profile, such as I♥NY.org
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-