Package org.dspace.checker
Enum ChecksumResultCode
- java.lang.Object
-
- java.lang.Enum<ChecksumResultCode>
-
- org.dspace.checker.ChecksumResultCode
-
- All Implemented Interfaces:
Serializable,Comparable<ChecksumResultCode>
public enum ChecksumResultCode extends Enum<ChecksumResultCode>
Enumeration of ChecksumCheckResults containing constants for checksum comparison result that must correspond to values in checksum_result table.- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr, Kevin Van de Velde
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BITSTREAM_INFO_NOT_FOUNDBITSTREAM_MARKED_DELETEDBITSTREAM_NOT_FOUNDBITSTREAM_NOT_PROCESSEDCHECKSUM_ALGORITHM_INVALIDCHECKSUM_MATCHCHECKSUM_NO_MATCHCHECKSUM_PREV_NOT_FOUND
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChecksumResultCodevalueOf(String name)Returns the enum constant of this type with the specified name.static ChecksumResultCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BITSTREAM_NOT_FOUND
public static final ChecksumResultCode BITSTREAM_NOT_FOUND
-
BITSTREAM_INFO_NOT_FOUND
public static final ChecksumResultCode BITSTREAM_INFO_NOT_FOUND
-
BITSTREAM_NOT_PROCESSED
public static final ChecksumResultCode BITSTREAM_NOT_PROCESSED
-
BITSTREAM_MARKED_DELETED
public static final ChecksumResultCode BITSTREAM_MARKED_DELETED
-
CHECKSUM_MATCH
public static final ChecksumResultCode CHECKSUM_MATCH
-
CHECKSUM_NO_MATCH
public static final ChecksumResultCode CHECKSUM_NO_MATCH
-
CHECKSUM_PREV_NOT_FOUND
public static final ChecksumResultCode CHECKSUM_PREV_NOT_FOUND
-
CHECKSUM_ALGORITHM_INVALID
public static final ChecksumResultCode CHECKSUM_ALGORITHM_INVALID
-
-
Method Detail
-
values
public static ChecksumResultCode[] 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 (ChecksumResultCode c : ChecksumResultCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChecksumResultCode 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
-
-