org.virtualbox_7_0
Enum Reason

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

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

Internal event reason type. Interface ID: {E7E8E097-299D-4E98-8BBC-C31C2D47D0CC}


Enum Constant Summary
HostBatteryLow
          Host is running low on battery (power management event).
HostResume
          Host is being resumed (power management event).
HostSuspend
          Host is being suspended (power management event).
Snapshot
          A snapshot of the VM is being taken.
Unspecified
          Null value, means "no known reason".
 
Method Summary
static Reason fromValue(long v)
           
static Reason fromValue(java.lang.String v)
           
 int value()
           
static Reason valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Reason[] 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

Unspecified

public static final Reason Unspecified
Null value, means "no known reason".


HostSuspend

public static final Reason HostSuspend
Host is being suspended (power management event).


HostResume

public static final Reason HostResume
Host is being resumed (power management event).


HostBatteryLow

public static final Reason HostBatteryLow
Host is running low on battery (power management event).


Snapshot

public static final Reason Snapshot
A snapshot of the VM is being taken.

Method Detail

values

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

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

valueOf

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

fromValue

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