dk.netarkivet.archive.arcrepository.bitpreservation
Enum UploadStatus

java.lang.Object
  extended by java.lang.Enum<UploadStatus>
      extended by dk.netarkivet.archive.arcrepository.bitpreservation.UploadStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UploadStatus>

public enum UploadStatus
extends java.lang.Enum<UploadStatus>

The status for the upload. This is to be used by the


Enum Constant Summary
COMPLETED
          If the upload has completed.
FAILED
          If the upload has failed.
NO_UPLOAD_STATUS
          If the status has not been defined.
STARTED
          If the upload has started.
 
Method Summary
static UploadStatus fromOrdinal(int us)
           
static UploadStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UploadStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_UPLOAD_STATUS

public static final UploadStatus NO_UPLOAD_STATUS
If the status has not been defined.


STARTED

public static final UploadStatus STARTED
If the upload has started.


FAILED

public static final UploadStatus FAILED
If the upload has failed.


COMPLETED

public static final UploadStatus COMPLETED
If the upload has completed.

Method Detail

values

public static UploadStatus[] 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 (UploadStatus c : UploadStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static UploadStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fromOrdinal

public static UploadStatus fromOrdinal(int us)
Parameters:
us - A certain integer for the upload status
Returns:
The UploadStatus related to the certain integer
Throws:
ArgumentNotValid - If argument rt does not correspond to a UploadStatus.