Package com.ibm.icu.text
Enum SpoofChecker.RestrictionLevel
- java.lang.Object
-
- java.lang.Enum<SpoofChecker.RestrictionLevel>
-
- com.ibm.icu.text.SpoofChecker.RestrictionLevel
-
- All Implemented Interfaces:
Serializable,Comparable<SpoofChecker.RestrictionLevel>
- Enclosing class:
- SpoofChecker
public static enum SpoofChecker.RestrictionLevel extends Enum<SpoofChecker.RestrictionLevel>
Constants from UAX 31 for use in setRestrictionLevel.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCIIOnly ASCII characters: U+0000..U+007FHIGHLY_RESTRICTIVEAll characters in each identifier must be from a single script, or from the combinations: Latin + Han + Hiragana + Katakana; Latin + Han + Bopomofo; or Latin + Han + Hangul.MINIMALLY_RESTRICTIVEAllow arbitrary mixtures of scripts, such as Ωmega, Teχ, HλLF-LIFE, Toys-Я-Us.MODERATELY_RESTRICTIVEAllow Latin with other scripts except Cyrillic, Greek, Cherokee Otherwise, the same as Highly RestrictiveSINGLE_SCRIPT_RESTRICTIVEAll characters in each identifier must be from a single script.UNRESTRICTIVEAny valid identifiers, including characters outside of the Identifier Profile, such as I♥NY.org
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpoofChecker.RestrictionLevelvalueOf(String name)Returns 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 Detail
-
ASCII
public static final SpoofChecker.RestrictionLevel ASCII
Only ASCII characters: U+0000..U+007F
-
SINGLE_SCRIPT_RESTRICTIVE
public static final SpoofChecker.RestrictionLevel SINGLE_SCRIPT_RESTRICTIVE
All characters in each identifier must be from a single script.
-
HIGHLY_RESTRICTIVE
public static final SpoofChecker.RestrictionLevel HIGHLY_RESTRICTIVE
All characters in each identifier must be from a single script, or from the combinations: Latin + Han + Hiragana + Katakana; Latin + Han + Bopomofo; or Latin + Han + Hangul. Note that this level will satisfy the vast majority of Latin-script users; also that TR36 has ASCII instead of Latin.
-
MODERATELY_RESTRICTIVE
public static final SpoofChecker.RestrictionLevel MODERATELY_RESTRICTIVE
Allow Latin with other scripts except Cyrillic, Greek, Cherokee Otherwise, the same as Highly Restrictive
-
MINIMALLY_RESTRICTIVE
public static final SpoofChecker.RestrictionLevel MINIMALLY_RESTRICTIVE
Allow arbitrary mixtures of scripts, such as Ωmega, Teχ, HλLF-LIFE, Toys-Я-Us. Otherwise, the same as Moderately Restrictive
-
UNRESTRICTIVE
public static final SpoofChecker.RestrictionLevel UNRESTRICTIVE
Any valid identifiers, including characters outside of the Identifier Profile, such as I♥NY.org
-
-
Method Detail
-
values
public static SpoofChecker.RestrictionLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpoofChecker.RestrictionLevel c : SpoofChecker.RestrictionLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpoofChecker.RestrictionLevel valueOf(String name)
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
-
-