org.virtualbox_4_2
Enum MediumType

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

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

Virtual medium type. For each IMedium, this defines how the medium is attached to a virtual machine (see IMediumAttachment) and what happens when a snapshot (see ISnapshot) is taken of a virtual machine which has the medium attached. At the moment DVD and floppy media are always of type "writethrough". Interface ID: {FE663FB5-C244-4E1B-9D81-C628B417DD04}


Enum Constant Summary
Immutable
          Immutable medium (attached indirectly, changes are wiped out the next time the virtual machine is started).
MultiAttach
          A medium which is indirectly attached, so that one base medium can be used for several VMs which have their own differencing medium to store their modifications.
Normal
          Normal medium (attached directly or indirectly, preserved when taking snapshots).
Readonly
          A readonly medium, which can of course be used by several machines.
Shareable
          Allow using this medium concurrently by several machines.
Writethrough
          Write through medium (attached directly, ignored when taking snapshots).
 
Method Summary
static MediumType fromValue(long v)
           
static MediumType fromValue(java.lang.String v)
           
 int value()
           
static MediumType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MediumType[] 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

Normal

public static final MediumType Normal
Normal medium (attached directly or indirectly, preserved when taking snapshots).


Immutable

public static final MediumType Immutable
Immutable medium (attached indirectly, changes are wiped out the next time the virtual machine is started).


Writethrough

public static final MediumType Writethrough
Write through medium (attached directly, ignored when taking snapshots).


Shareable

public static final MediumType Shareable
Allow using this medium concurrently by several machines. NOTE: Present since VirtualBox 3.2.0, and accepted since 3.2.8.


Readonly

public static final MediumType Readonly
A readonly medium, which can of course be used by several machines. NOTE: Present and accepted since VirtualBox 4.0.


MultiAttach

public static final MediumType MultiAttach
A medium which is indirectly attached, so that one base medium can be used for several VMs which have their own differencing medium to store their modifications. In some sense a variant of Immutable with unset AutoReset flag in each differencing medium. NOTE: Present and accepted since VirtualBox 4.0.

Method Detail

values

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

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

valueOf

public static MediumType 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 MediumType fromValue(long v)

fromValue

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