gov.nih.nci.caarray.domain.file
Enum FileStatus

java.lang.Object
  extended by java.lang.Enum<FileStatus>
      extended by gov.nih.nci.caarray.domain.file.FileStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FileStatus>

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

Status of a CaArrayFile.


Enum Constant Summary
IMPORT_FAILED
          Failed Import.
IMPORTED
          Successfully imported.
IMPORTED_NOT_PARSED
          Successfully imported but data not parsed.
IMPORTING
          In the process of importing.
IN_QUEUE
          In the queue awaiting validation or import.
SUPPLEMENTAL
          Arbitrary files associated directly with a project.
UPLOADED
          Uploaded, but not yet validated.
UPLOADING
          Partially uploaded.
VALIDATED
          Successfully validated.
VALIDATED_NOT_PARSED
          Included non-parsed data format in validation.
VALIDATING
          In the process of validating.
VALIDATION_ERRORS
          Validation uncovered errors.
 
Field Summary
static java.util.Set<FileStatus> DELETABLE_FILE_STATUSES
          The set of FileStatuses in which a file can be deleted.
static java.util.Set<FileStatus> IMPORTABLE_FILE_STATUSES
          The set of FileStatuses in which a file can be imported.
static java.util.Set<FileStatus> VALIDATABLE_FILE_STATUSES
          The set of FileStatuses in which a file can be validated.
 
Method Summary
 java.lang.String getDisplayValue()
           
 boolean isDeletable()
           
 boolean isImportable()
           
 boolean isValidatable()
           
static FileStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FileStatus[] 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

UPLOADING

public static final FileStatus UPLOADING
Partially uploaded.


UPLOADED

public static final FileStatus UPLOADED
Uploaded, but not yet validated.


IN_QUEUE

public static final FileStatus IN_QUEUE
In the queue awaiting validation or import.


VALIDATING

public static final FileStatus VALIDATING
In the process of validating.


VALIDATED_NOT_PARSED

public static final FileStatus VALIDATED_NOT_PARSED
Included non-parsed data format in validation.


VALIDATED

public static final FileStatus VALIDATED
Successfully validated.


VALIDATION_ERRORS

public static final FileStatus VALIDATION_ERRORS
Validation uncovered errors.


IMPORTING

public static final FileStatus IMPORTING
In the process of importing.


IMPORTED

public static final FileStatus IMPORTED
Successfully imported.


IMPORTED_NOT_PARSED

public static final FileStatus IMPORTED_NOT_PARSED
Successfully imported but data not parsed.


IMPORT_FAILED

public static final FileStatus IMPORT_FAILED
Failed Import.


SUPPLEMENTAL

public static final FileStatus SUPPLEMENTAL
Arbitrary files associated directly with a project.

Field Detail

DELETABLE_FILE_STATUSES

public static final java.util.Set<FileStatus> DELETABLE_FILE_STATUSES
The set of FileStatuses in which a file can be deleted.


IMPORTABLE_FILE_STATUSES

public static final java.util.Set<FileStatus> IMPORTABLE_FILE_STATUSES
The set of FileStatuses in which a file can be imported.


VALIDATABLE_FILE_STATUSES

public static final java.util.Set<FileStatus> VALIDATABLE_FILE_STATUSES
The set of FileStatuses in which a file can be validated.

Method Detail

values

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

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

valueOf

public static FileStatus 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

getDisplayValue

public java.lang.String getDisplayValue()
Returns:
File status display name.

isDeletable

public boolean isDeletable()
Returns:
the deletable

isValidatable

public boolean isValidatable()
Returns:
the validatable

isImportable

public boolean isImportable()
Returns:
the importable