Package org.dspace.app.rest.model
Enum HarvestTypeEnum
- java.lang.Object
-
- java.lang.Enum<HarvestTypeEnum>
-
- org.dspace.app.rest.model.HarvestTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<HarvestTypeEnum>
public enum HarvestTypeEnum extends Enum<HarvestTypeEnum>
An enum containing all the possible harvest types- Author:
- Jelle Pelgrims (jelle.pelgrims at atmire.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description METADATA_AND_BITSTREAMSMETADATA_AND_REFMETADATA_ONLYNONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HarvestTypeEnumfromInt(Integer harvestType)Creates an enum from the given integerintgetValue()static HarvestTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static HarvestTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final HarvestTypeEnum NONE
-
METADATA_ONLY
public static final HarvestTypeEnum METADATA_ONLY
-
METADATA_AND_REF
public static final HarvestTypeEnum METADATA_AND_REF
-
METADATA_AND_BITSTREAMS
public static final HarvestTypeEnum METADATA_AND_BITSTREAMS
-
-
Method Detail
-
values
public static HarvestTypeEnum[] 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 (HarvestTypeEnum c : HarvestTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HarvestTypeEnum 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 HarvestTypeEnum fromInt(Integer harvestType)
Creates an enum from the given integer- Parameters:
harvestType- The harvest type- Returns:
- a harvestTypeEnum
-
-