Package org.gbif.api.vocabulary
Enum ParticipationStatus
- java.lang.Object
-
- java.lang.Enum<ParticipationStatus>
-
- org.gbif.api.vocabulary.ParticipationStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<ParticipationStatus>
public enum ParticipationStatus extends Enum<ParticipationStatus>
Enumeration for all of GBIF's participation statuses.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParticipationStatus
fromString(String participationStatus)
static ParticipationStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParticipationStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VOTING
public static final ParticipationStatus VOTING
-
ASSOCIATE
public static final ParticipationStatus ASSOCIATE
-
OBSERVER
public static final ParticipationStatus OBSERVER
-
FORMER
public static final ParticipationStatus FORMER
-
AFFILIATE
public static final ParticipationStatus AFFILIATE
-
-
Method Detail
-
values
public static ParticipationStatus[] 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 (ParticipationStatus c : ParticipationStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParticipationStatus 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
-
fromString
public static ParticipationStatus fromString(String participationStatus)
- Parameters:
participationStatus
- GBIF node's participation status- Returns:
- the matching participation status
-
-