Package org.gbif.api.vocabulary
Enum DatasetType
- java.lang.Object
-
- java.lang.Enum<DatasetType>
-
- org.gbif.api.vocabulary.DatasetType
-
- All Implemented Interfaces:
Serializable
,Comparable<DatasetType>
public enum DatasetType extends Enum<DatasetType>
Enumeration for all possible dataset types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKLIST
A checklist dataset.MATERIAL_ENTITY
A material entity dataset.METADATA
External metadata about any kind of biodiversity dataset.OCCURRENCE
An occurrence dataset.SAMPLING_EVENT
A dataset about a sampling event.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DatasetType
fromString(String datasetType)
static DatasetType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DatasetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OCCURRENCE
public static final DatasetType OCCURRENCE
An occurrence dataset.
-
CHECKLIST
public static final DatasetType CHECKLIST
A checklist dataset.
-
METADATA
public static final DatasetType METADATA
External metadata about any kind of biodiversity dataset.
-
SAMPLING_EVENT
public static final DatasetType SAMPLING_EVENT
A dataset about a sampling event.
-
MATERIAL_ENTITY
public static final DatasetType MATERIAL_ENTITY
A material entity dataset.
-
-
Method Detail
-
values
public static DatasetType[] 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 (DatasetType c : DatasetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatasetType 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 DatasetType fromString(String datasetType)
- Returns:
- the matching DatasetType or null
-
-