public static enum SpoofChecker.RestrictionLevel extends Enum<SpoofChecker.RestrictionLevel>
Enum Constant and 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
|
Modifier and Type | Method and Description |
---|---|
static SpoofChecker.RestrictionLevel |
valueOf(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.
|
public static final SpoofChecker.RestrictionLevel ASCII
public static final SpoofChecker.RestrictionLevel SINGLE_SCRIPT_RESTRICTIVE
public static final SpoofChecker.RestrictionLevel HIGHLY_RESTRICTIVE
public static final SpoofChecker.RestrictionLevel MODERATELY_RESTRICTIVE
public static final SpoofChecker.RestrictionLevel MINIMALLY_RESTRICTIVE
public static final SpoofChecker.RestrictionLevel UNRESTRICTIVE
public static SpoofChecker.RestrictionLevel[] values()
for (SpoofChecker.RestrictionLevel c : SpoofChecker.RestrictionLevel.values()) System.out.println(c);
public static SpoofChecker.RestrictionLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Unicode, Inc. and others.