Enum Match.Reason
- java.lang.Object
-
- java.lang.Enum<Match.Reason>
-
- org.gbif.api.model.collections.lookup.Match.Reason
-
- All Implemented Interfaces:
Serializable
,Comparable<Match.Reason>
- Enclosing class:
- Match<T extends EntityMatched>
public static enum Match.Reason extends Enum<Match.Reason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALTERNATIVE_CODE_MATCH
BELONGS_TO_INSTITUTION_MATCHED
CODE_MATCH
COUNTRY_MATCH
DIFFERENT_OWNER
IDENTIFIER_MATCH
INST_COLL_MISMATCH
KEY_MATCH
NAME_MATCH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Match.Reason
valueOf(String name)
Returns the enum constant of this type with the specified name.static Match.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CODE_MATCH
public static final Match.Reason CODE_MATCH
-
IDENTIFIER_MATCH
public static final Match.Reason IDENTIFIER_MATCH
-
ALTERNATIVE_CODE_MATCH
public static final Match.Reason ALTERNATIVE_CODE_MATCH
-
NAME_MATCH
public static final Match.Reason NAME_MATCH
-
KEY_MATCH
public static final Match.Reason KEY_MATCH
-
DIFFERENT_OWNER
public static final Match.Reason DIFFERENT_OWNER
-
BELONGS_TO_INSTITUTION_MATCHED
public static final Match.Reason BELONGS_TO_INSTITUTION_MATCHED
-
INST_COLL_MISMATCH
public static final Match.Reason INST_COLL_MISMATCH
-
COUNTRY_MATCH
public static final Match.Reason COUNTRY_MATCH
-
-
Method Detail
-
values
public static Match.Reason[] 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 (Match.Reason c : Match.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Match.Reason 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 nameNullPointerException
- if the argument is null
-
-