
com.sun.xml.ws.commons.virtualbox.PortMode Maven / Gradle / Ivy
package com.sun.xml.ws.commons.virtualbox;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for PortMode.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="PortMode">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Disconnected"/>
* <enumeration value="HostPipe"/>
* <enumeration value="HostDevice"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "PortMode")
@XmlEnum
public enum PortMode {
@XmlEnumValue("Disconnected")
DISCONNECTED("Disconnected"),
@XmlEnumValue("HostPipe")
HOST_PIPE("HostPipe"),
@XmlEnumValue("HostDevice")
HOST_DEVICE("HostDevice");
private final String value;
PortMode(String v) {
value = v;
}
public String value() {
return value;
}
public static PortMode fromValue(String v) {
for (PortMode c: PortMode.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy