org.mmbase.applications.media
Enum State

java.lang.Object
  extended by java.lang.Enum<State>
      extended by org.mmbase.applications.media.State
All Implemented Interfaces:
Serializable, Comparable<State>

public enum State
extends Enum<State>


Enum Constant Summary
BUSY
          The media source is currently being generated, typically being transcoded.
DONE
          The media source is generated, typically transcoded, and is ready.
FAILED
          Transcoding of the media source failed.
INTERRUPTED
          Transcoding of the media source is interrupted.
REMOVED
           
REQUEST
          The state is 'requested', which means that the media source does not yet have any data.
SOURCE
          This means that the media source is an original.
SOURCE_UNSUPPORTED
          Generation of other media from this media source is not supported by this system, the source has an unknown or unsupported format or codec.
UNDEFINED
           
 
Method Summary
static State get(int value)
           
 int getValue()
           
static State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static State[] 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

REQUEST

public static final State REQUEST
The state is 'requested', which means that the media source does not yet have any data.


BUSY

public static final State BUSY
The media source is currently being generated, typically being transcoded.


DONE

public static final State DONE
The media source is generated, typically transcoded, and is ready.


SOURCE

public static final State SOURCE
This means that the media source is an original.


SOURCE_UNSUPPORTED

public static final State SOURCE_UNSUPPORTED
Generation of other media from this media source is not supported by this system, the source has an unknown or unsupported format or codec.


UNDEFINED

public static final State UNDEFINED

REMOVED

public static final State REMOVED

FAILED

public static final State FAILED
Transcoding of the media source failed.


INTERRUPTED

public static final State INTERRUPTED
Transcoding of the media source is interrupted.

Method Detail

values

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

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

valueOf

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

getValue

public int getValue()

get

public static State get(int value)


MMBase 2.0-SNAPSHOT - null