com.sun.xml.ws.commons.virtualbox.SessionState Maven / Gradle / Ivy
The newest version!
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 SessionState.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="SessionState">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Null"/>
* <enumeration value="Closed"/>
* <enumeration value="Open"/>
* <enumeration value="Spawning"/>
* <enumeration value="Closing"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "SessionState")
@XmlEnum
public enum SessionState {
@XmlEnumValue("Null")
NULL("Null"),
@XmlEnumValue("Closed")
CLOSED("Closed"),
@XmlEnumValue("Open")
OPEN("Open"),
@XmlEnumValue("Spawning")
SPAWNING("Spawning"),
@XmlEnumValue("Closing")
CLOSING("Closing");
private final String value;
SessionState(String v) {
value = v;
}
public String value() {
return value;
}
public static SessionState fromValue(String v) {
for (SessionState c: SessionState.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy