Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for StorageControllerType.

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

 <simpleType name="StorageControllerType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Null"/>
     <enumeration value="LsiLogic"/>
     <enumeration value="BusLogic"/>
     <enumeration value="IntelAhci"/>
     <enumeration value="PIIX3"/>
     <enumeration value="PIIX4"/>
     <enumeration value="ICH6"/>
     <enumeration value="I82078"/>
     <enumeration value="LsiLogicSas"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "StorageControllerType")
public enum StorageControllerType {
    @XmlEnumValue("Null")
    NULL("Null"),
    @XmlEnumValue("LsiLogic")
    LSI_LOGIC("LsiLogic"),
    @XmlEnumValue("BusLogic")
    BUS_LOGIC("BusLogic"),
    @XmlEnumValue("IntelAhci")
    INTEL_AHCI("IntelAhci"),
    @XmlEnumValue("PIIX3")
    PIIX_3("PIIX3"),
    @XmlEnumValue("PIIX4")
    PIIX_4("PIIX4"),
    @XmlEnumValue("ICH6")
    ICH_6("ICH6"),
    @XmlEnumValue("I82078")
    I_82078("I82078"),
    @XmlEnumValue("LsiLogicSas")
    LSI_LOGIC_SAS("LsiLogicSas");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static StorageControllerType fromValue(String v) {
        for (StorageControllerType c: StorageControllerType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X