Enum SpoofChecker.RestrictionLevel

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ASCII
      All characters in the string are in the identifier profile and all characters in the string are in the ASCII range.
      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)
      MINIMALLY_RESTRICTIVE
      All characters in the string are in the identifier profile.
      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.
      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.
      UNRESTRICTIVE
      Any 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.RestrictionLevel valueOf​(java.lang.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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • 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 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null