Package org.gbif.api.vocabulary
Enum OccurrencePersistenceStatus
- java.lang.Object
-
- java.lang.Enum<OccurrencePersistenceStatus>
-
- org.gbif.api.vocabulary.OccurrencePersistenceStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<OccurrencePersistenceStatus>
public enum OccurrencePersistenceStatus extends Enum<OccurrencePersistenceStatus>
These are the possible states of anOccurrence
as it moves through the processing and persistence chain. It is used both in the processing logic as well as the messages that are exchanged as part of that processing.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETED
This occurrence has been deleted.NEW
This occurrence has never been seen before.UNCHANGED
This occurrence previously existed but there is no new information to propagate.UPDATED
This occurrence previously existed and has now been updated with new information.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OccurrencePersistenceStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static OccurrencePersistenceStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final OccurrencePersistenceStatus NEW
This occurrence has never been seen before.
-
UPDATED
public static final OccurrencePersistenceStatus UPDATED
This occurrence previously existed and has now been updated with new information.
-
UNCHANGED
public static final OccurrencePersistenceStatus UNCHANGED
This occurrence previously existed but there is no new information to propagate. This is typical of a crawl in which the exact record that was harvested in the previous crawl is seen again.
-
DELETED
public static final OccurrencePersistenceStatus DELETED
This occurrence has been deleted.
-
-
Method Detail
-
values
public static OccurrencePersistenceStatus[] 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 (OccurrencePersistenceStatus c : OccurrencePersistenceStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OccurrencePersistenceStatus 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
-
-