Enum SpoofChecker.RestrictionLevel

java.lang.Object
java.lang.Enum<SpoofChecker.RestrictionLevel>
com.ibm.icu.text.SpoofChecker.RestrictionLevel
All Implemented Interfaces:
Serializable, Comparable<SpoofChecker.RestrictionLevel>, java.lang.constant.Constable
Enclosing class:
SpoofChecker

public static enum SpoofChecker.RestrictionLevel extends Enum<SpoofChecker.RestrictionLevel>
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 Constants
    Enum Constant
    Description
    All 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 Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ASCII

      public static final SpoofChecker.RestrictionLevel 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

      public static final SpoofChecker.RestrictionLevel 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

      public static final SpoofChecker.RestrictionLevel 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

      public static final SpoofChecker.RestrictionLevel 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

      public static final SpoofChecker.RestrictionLevel 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

      public static final SpoofChecker.RestrictionLevel UNRESTRICTIVE
      Any valid identifiers, including characters outside of the Identifier Profile, such as I♥NY.org
  • Method Details

    • values

      public static SpoofChecker.RestrictionLevel[] 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

      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 name
      NullPointerException - if the argument is null