Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

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")
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) {
         = v;
    }
    public String value() {
        return ;
    }
    public static MediumState fromValue(String v) {
        for (MediumState c: MediumState.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X