org.eclipse.emf.emfstore.internal.client.model.filetransfer
Enum FileDownloadStatus.Status

java.lang.Object
  extended by java.lang.Enum<FileDownloadStatus.Status>
      extended by org.eclipse.emf.emfstore.internal.client.model.filetransfer.FileDownloadStatus.Status
All Implemented Interfaces:
Serializable, Comparable<FileDownloadStatus.Status>
Enclosing class:
FileDownloadStatus

public static enum FileDownloadStatus.Status
extends Enum<FileDownloadStatus.Status>

Return value of the getStatus method.

Author:
jfinis

Enum Constant Summary
CANCELLED
          The transfer was cancelled.
FAILED
          If an exception was thrown.
FINISHED
          The transfer is finished.
NOT_STARTED
          The file transfer was not yet started.
TRANSFERING
          The transfer is actively transfering data.
 
Method Summary
static FileDownloadStatus.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FileDownloadStatus.Status[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOT_STARTED

public static final FileDownloadStatus.Status NOT_STARTED
The file transfer was not yet started.


TRANSFERING

public static final FileDownloadStatus.Status TRANSFERING
The transfer is actively transfering data.


FINISHED

public static final FileDownloadStatus.Status FINISHED
The transfer is finished.


CANCELLED

public static final FileDownloadStatus.Status CANCELLED
The transfer was cancelled.


FAILED

public static final FileDownloadStatus.Status FAILED
If an exception was thrown. The exception can then be retrieved by calling getException()

Method Detail

values

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

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

valueOf

public static FileDownloadStatus.Status 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 name
NullPointerException - if the argument is null


Copyright © 2015. All Rights Reserved.