Enum SpoofChecker.RestrictionLevel

    • Enum Constant Detail

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