org.virtualbox_4_3
Enum CleanupMode

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

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

Cleanup mode, used with IMachine.unregister(org.virtualbox_4_3.CleanupMode). Interface ID: {67897C50-7CCA-47A9-83F6-CE8FD8EB5441}


Enum Constant Summary
DetachAllReturnHardDisksOnly
          Delete all snapshots, detach all media and return hard disks for closing, but not removable media.
DetachAllReturnNone
          Delete all snapshots and detach all media but return none; this will keep all media registered.
Full
          Delete all snapshots, detach all media and return all media for closing.
UnregisterOnly
          Unregister only the machine, but neither delete snapshots nor detach media.
 
Method Summary
static CleanupMode fromValue(long v)
           
static CleanupMode fromValue(java.lang.String v)
           
 int value()
           
static CleanupMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CleanupMode[] 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

UnregisterOnly

public static final CleanupMode UnregisterOnly
Unregister only the machine, but neither delete snapshots nor detach media.


DetachAllReturnNone

public static final CleanupMode DetachAllReturnNone
Delete all snapshots and detach all media but return none; this will keep all media registered.


DetachAllReturnHardDisksOnly

public static final CleanupMode DetachAllReturnHardDisksOnly
Delete all snapshots, detach all media and return hard disks for closing, but not removable media.


Full

public static final CleanupMode Full
Delete all snapshots, detach all media and return all media for closing.

Method Detail

values

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

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

valueOf

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

fromValue

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