Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for HWVirtExPropertyType.

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

 <simpleType name="HWVirtExPropertyType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Null"/>
     <enumeration value="Enabled"/>
     <enumeration value="Exclusive"/>
     <enumeration value="VPID"/>
     <enumeration value="NestedPaging"/>
     <enumeration value="LargePages"/>
     <enumeration value="Force"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "HWVirtExPropertyType")
public enum HWVirtExPropertyType {
    @XmlEnumValue("Null")
    NULL("Null"),
    @XmlEnumValue("Enabled")
    ENABLED("Enabled"),
    @XmlEnumValue("Exclusive")
    EXCLUSIVE("Exclusive"),
    VPID("VPID"),
    @XmlEnumValue("NestedPaging")
    NESTED_PAGING("NestedPaging"),
    @XmlEnumValue("LargePages")
    LARGE_PAGES("LargePages"),
    @XmlEnumValue("Force")
    FORCE("Force");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static HWVirtExPropertyType fromValue(String v) {
        for (HWVirtExPropertyType c: HWVirtExPropertyType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X