Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for AccessMode.

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

 <simpleType name="AccessMode">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="ReadOnly"/>
     <enumeration value="ReadWrite"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "AccessMode")
public enum AccessMode {
    @XmlEnumValue("ReadOnly")
    READ_ONLY("ReadOnly"),
    @XmlEnumValue("ReadWrite")
    READ_WRITE("ReadWrite");
    private final String value;
    AccessMode(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static AccessMode fromValue(String v) {
        for (AccessMode c: AccessMode.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X