org.virtualbox_4_2.jaxws.MediumState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vboxjws Show documentation
Show all versions of vboxjws Show documentation
VirtualBox Client API 4.2.4
package org.virtualbox_4_2.jaxws;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for MediumState.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="MediumState">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="NotCreated"/>
* <enumeration value="Created"/>
* <enumeration value="LockedRead"/>
* <enumeration value="LockedWrite"/>
* <enumeration value="Inaccessible"/>
* <enumeration value="Creating"/>
* <enumeration value="Deleting"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "MediumState")
@XmlEnum
public enum MediumState {
@XmlEnumValue("NotCreated")
NOT_CREATED("NotCreated"),
@XmlEnumValue("Created")
CREATED("Created"),
@XmlEnumValue("LockedRead")
LOCKED_READ("LockedRead"),
@XmlEnumValue("LockedWrite")
LOCKED_WRITE("LockedWrite"),
@XmlEnumValue("Inaccessible")
INACCESSIBLE("Inaccessible"),
@XmlEnumValue("Creating")
CREATING("Creating"),
@XmlEnumValue("Deleting")
DELETING("Deleting");
private final String value;
MediumState(String v) {
value = v;
}
public String value() {
return value;
}
public static MediumState fromValue(String v) {
for (MediumState c: MediumState.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy