org.virtualbox_5_2
Enum PortMode

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

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

The PortMode enumeration represents possible communication modes for the virtual serial port device. Interface ID: {7485FCFD-D603-470A-87AF-26D33BEB7DE9}


Enum Constant Summary
Disconnected
          Virtual device is not attached to any real host device.
HostDevice
          Virtual device is attached to a host device.
HostPipe
          Virtual device is attached to a host pipe.
RawFile
          Virtual device is attached to a raw file.
TCP
          Virtual device is attached to a TCP socket.
 
Method Summary
static PortMode fromValue(long v)
           
static PortMode fromValue(java.lang.String v)
           
 int value()
           
static PortMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PortMode[] 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

Disconnected

public static final PortMode Disconnected
Virtual device is not attached to any real host device.


HostPipe

public static final PortMode HostPipe
Virtual device is attached to a host pipe.


HostDevice

public static final PortMode HostDevice
Virtual device is attached to a host device.


RawFile

public static final PortMode RawFile
Virtual device is attached to a raw file.


TCP

public static final PortMode TCP
Virtual device is attached to a TCP socket.

Method Detail

values

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

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

valueOf

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

fromValue

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