Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for CPUPropertyType.

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

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