Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for SessionType.

The following schema fragment specifies the expected content contained within this class.

 <simpleType name="SessionType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Null"/>
     <enumeration value="WriteLock"/>
     <enumeration value="Remote"/>
     <enumeration value="Shared"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "SessionType")
public enum SessionType {
    @XmlEnumValue("Null")
    NULL("Null"),
    @XmlEnumValue("WriteLock")
    WRITE_LOCK("WriteLock"),
    @XmlEnumValue("Remote")
    REMOTE("Remote"),
    @XmlEnumValue("Shared")
    SHARED("Shared");
    private final String value;
    SessionType(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static SessionType fromValue(String v) {
        for (SessionType c: SessionType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X