Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

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="Unlocked"/>
     <enumeration value="Locked"/>
     <enumeration value="Spawning"/>
     <enumeration value="Unlocking"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "SessionState")
public enum SessionState {
    @XmlEnumValue("Null")
    NULL("Null"),
    @XmlEnumValue("Unlocked")
    UNLOCKED("Unlocked"),
    @XmlEnumValue("Locked")
    LOCKED("Locked"),
    @XmlEnumValue("Spawning")
    SPAWNING("Spawning"),
    @XmlEnumValue("Unlocking")
    UNLOCKING("Unlocking");
    private final String value;
    SessionState(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static SessionState fromValue(String v) {
        for (SessionState c: SessionState.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X