org.virtualbox_4_3
Enum SessionType

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

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

Session type. This enumeration represents possible values of the ISession.getType()attribute. Interface ID: {A13C02CB-0C2C-421E-8317-AC0E8AAA153A}


Enum Constant Summary
Null
          Null value (never used by the API).
Remote
          Session has launched a VM process using IMachine.launchVMProcess(org.virtualbox_4_3.ISession,String,String)
Shared
          Session has obtained a link to another session using IMachine.lockMachine(org.virtualbox_4_3.ISession,org.virtualbox_4_3.LockType)
WriteLock
          Session has acquired an exclusive write lock on a machine using IMachine.lockMachine(org.virtualbox_4_3.ISession,org.virtualbox_4_3.LockType).
 
Method Summary
static SessionType fromValue(long v)
           
static SessionType fromValue(java.lang.String v)
           
 int value()
           
static SessionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SessionType[] 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

Null

public static final SessionType Null
Null value (never used by the API).


WriteLock

public static final SessionType WriteLock
Session has acquired an exclusive write lock on a machine using IMachine.lockMachine(org.virtualbox_4_3.ISession,org.virtualbox_4_3.LockType).


Remote

public static final SessionType Remote
Session has launched a VM process using IMachine.launchVMProcess(org.virtualbox_4_3.ISession,String,String)


Shared

public static final SessionType Shared
Session has obtained a link to another session using IMachine.lockMachine(org.virtualbox_4_3.ISession,org.virtualbox_4_3.LockType)

Method Detail

values

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

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

valueOf

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

fromValue

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