Package org.dspace.app.rest.model
Enum HarvestStatusEnum
- java.lang.Object
-
- java.lang.Enum<HarvestStatusEnum>
-
- org.dspace.app.rest.model.HarvestStatusEnum
-
- All Implemented Interfaces:
Serializable,Comparable<HarvestStatusEnum>
public enum HarvestStatusEnum extends Enum<HarvestStatusEnum>
An enum containing all the possible harvest statuses- Author:
- Jelle Pelgrims (jelle.pelgrims at atmire.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUSYOAI_ERRORQUEUEDREADYUNKNOWN_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HarvestStatusEnumfromInt(Integer harvestStatus)intgetValue()static HarvestStatusEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static HarvestStatusEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READY
public static final HarvestStatusEnum READY
-
BUSY
public static final HarvestStatusEnum BUSY
-
QUEUED
public static final HarvestStatusEnum QUEUED
-
OAI_ERROR
public static final HarvestStatusEnum OAI_ERROR
-
UNKNOWN_ERROR
public static final HarvestStatusEnum UNKNOWN_ERROR
-
-
Method Detail
-
values
public static HarvestStatusEnum[] 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 (HarvestStatusEnum c : HarvestStatusEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HarvestStatusEnum 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
-
getValue
public int getValue()
-
fromInt
public static HarvestStatusEnum fromInt(Integer harvestStatus)
-
-