org.virtualbox_5_0
Enum MediumState

java.lang.Object
  extended by java.lang.Enum<MediumState>
      extended by org.virtualbox_5_0.MediumState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MediumState>

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

Virtual medium state.

See Also:
Interface ID: {EF41E980-E012-43CD-9DEA-479D4EF14D13}

Enum Constant Summary
Created
          Associated storage exists and accessible; this gets set if the accessibility check performed byIMedium.refreshState()was successful.
Creating
          Associated medium storage is being created.
Deleting
          Associated medium storage is being deleted.
Inaccessible
          Medium accessibility check (seeIMedium.refreshState()) has not yet been performed, or else, associated medium storage is not accessible.
LockedRead
          Medium is locked for reading (seeIMedium.lockRead()), no data modification is possible.
LockedWrite
          Medium is locked for writing (seeIMedium.lockWrite()), no concurrent data reading or modification is possible.
NotCreated
          Associated medium storage does not exist (either was not created yet or was deleted).
 
Method Summary
static MediumState fromValue(long v)
           
static MediumState fromValue(java.lang.String v)
           
 int value()
           
static MediumState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MediumState[] 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

NotCreated

public static final MediumState NotCreated
Associated medium storage does not exist (either was not created yet or was deleted).


Created

public static final MediumState Created
Associated storage exists and accessible; this gets set if the accessibility check performed byIMedium.refreshState()was successful.


LockedRead

public static final MediumState LockedRead
Medium is locked for reading (seeIMedium.lockRead()), no data modification is possible.


LockedWrite

public static final MediumState LockedWrite
Medium is locked for writing (seeIMedium.lockWrite()), no concurrent data reading or modification is possible.


Inaccessible

public static final MediumState Inaccessible
Medium accessibility check (seeIMedium.refreshState()) has not yet been performed, or else, associated medium storage is not accessible. In the first case,IMedium.getLastAccessError()is empty, in the second case, it describes the error that occurred.


Creating

public static final MediumState Creating
Associated medium storage is being created.


Deleting

public static final MediumState Deleting
Associated medium storage is being deleted.

Method Detail

values

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

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

valueOf

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

value

public int value()

fromValue

public static MediumState fromValue(long v)

fromValue

public static MediumState fromValue(java.lang.String v)