Enum MatchValidationLevel
java.lang.Object
java.lang.Enum<MatchValidationLevel>
com.compomics.util.experiment.identification.validation.MatchValidationLevel
- All Implemented Interfaces:
Serializable,Comparable<MatchValidationLevel>,java.lang.constant.Constable
Enum listing the different levels of match validation.
- Author:
- Marc Vaudel
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetIconMap(Class tempClass) Returns the default map of icons for the validation levels.intgetIndex()Returns the index associated to this possibility.static MatchValidationLevelgetMatchValidationLevel(int index) Returns the match validation level associated to a given index.static MatchValidationLevelReturns the match validation level associated to a given name.getName()Returns the name of this possibility.Returns the default map of icons for the validation levels.static int[]Returns an array of the validation level indexes in ascending order of confidence.static MatchValidationLevel[]Returns the implemented validation levels.static String[]Returns a list of the names of the implemented validation levels.booleanIndicates whether this level is considered as validated.toString()static MatchValidationLevelReturns 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.
-
Enum Constant Details
-
none
-
not_validated
-
doubtful
-
confident
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getIndex
public int getIndex()Returns the index associated to this possibility.- Returns:
- the index associated to this possibility
-
getName
Returns the name of this possibility.- Returns:
- the name of this possibility
-
isValidated
public boolean isValidated()Indicates whether this level is considered as validated.- Returns:
- a boolean indicating whether this level is considered as validated.
-
toString
- Overrides:
toStringin classEnum<MatchValidationLevel>
-
getIconMap
Returns the default map of icons for the validation levels.- Parameters:
tempClass- reference to the class needed to use getResource (use the getClass method)- Returns:
- he default map of icons
-
getValidationLevels
Returns the implemented validation levels.- Returns:
- the implemented validation levels
-
getValidationLevelIndexes
public static int[] getValidationLevelIndexes()Returns an array of the validation level indexes in ascending order of confidence.- Returns:
- an array of the validation level indexes
-
getTooltipMap
Returns the default map of icons for the validation levels.- Returns:
- he default map of icons
-
getValidationLevelsNames
Returns a list of the names of the implemented validation levels.- Returns:
- a list of the names of the implemented validation levels
-
getMatchValidationLevel
Returns the match validation level associated to a given name.- Parameters:
name- the name- Returns:
- the match validation level associated to a given name
-
getMatchValidationLevel
Returns the match validation level associated to a given index.- Parameters:
index- the index- Returns:
- the match validation level associated to a given index
-