public enum MatchValidationLevel extends Enum<MatchValidationLevel>
Enum Constant and Description |
---|
confident |
doubtful |
none |
not_validated |
Modifier and Type | Method and Description |
---|---|
static HashMap<Integer,ImageIcon> |
getIconMap(Class tempClass)
Returns the default map of icons for the validation levels.
|
int |
getIndex()
Returns the index associated to this possibility.
|
static MatchValidationLevel |
getMatchValidationLevel(int index)
Returns the match validation level associated to a given index.
|
static MatchValidationLevel |
getMatchValidationLevel(String name)
Returns the match validation level associated to a given name.
|
String |
getName()
Returns the name of this possibility.
|
static HashMap<Integer,String> |
getTooltipMap()
Returns the default map of icons for the validation levels.
|
static int[] |
getValidationLevelIndexes()
Returns an array of the validation level indexes in ascending order of
confidence.
|
static MatchValidationLevel[] |
getValidationLevels()
Returns the implemented validation levels.
|
static String[] |
getValidationLevelsNames()
Returns a list of the names of the implemented validation levels.
|
boolean |
isValidated()
Indicates whether this level is considered as validated.
|
String |
toString() |
static MatchValidationLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatchValidationLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatchValidationLevel none
public static final MatchValidationLevel not_validated
public static final MatchValidationLevel doubtful
public static final MatchValidationLevel confident
public static MatchValidationLevel[] values()
for (MatchValidationLevel c : MatchValidationLevel.values()) System.out.println(c);
public static MatchValidationLevel 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 nullpublic int getIndex()
public String getName()
public boolean isValidated()
public String toString()
toString
in class Enum<MatchValidationLevel>
public static HashMap<Integer,ImageIcon> getIconMap(Class tempClass)
tempClass
- reference to the class needed to use getResource (use
the getClass method)public static MatchValidationLevel[] getValidationLevels()
public static int[] getValidationLevelIndexes()
public static HashMap<Integer,String> getTooltipMap()
public static String[] getValidationLevelsNames()
public static MatchValidationLevel getMatchValidationLevel(String name)
name
- the namepublic static MatchValidationLevel getMatchValidationLevel(int index)
index
- the indexCopyright © 2021. All rights reserved.