org.virtualbox_4_3
Enum NetworkAttachmentType
java.lang.Object
java.lang.Enum<NetworkAttachmentType>
org.virtualbox_4_3.NetworkAttachmentType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<NetworkAttachmentType>
public enum NetworkAttachmentType
- extends java.lang.Enum<NetworkAttachmentType>
Network attachment type.
Interface ID: {524A8F9D-4B86-4B51-877D-1AA27C4EBEAC}
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 |
Null
public static final NetworkAttachmentType Null
- Null value, also means "not attached".
NAT
public static final NetworkAttachmentType NAT
Bridged
public static final NetworkAttachmentType Bridged
Internal
public static final NetworkAttachmentType Internal
HostOnly
public static final NetworkAttachmentType HostOnly
Generic
public static final NetworkAttachmentType Generic
NATNetwork
public static final NetworkAttachmentType NATNetwork
values
public static NetworkAttachmentType[] 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 (NetworkAttachmentType c : NetworkAttachmentType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NetworkAttachmentType 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 NetworkAttachmentType fromValue(long v)
fromValue
public static NetworkAttachmentType fromValue(java.lang.String v)