Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for FirmwareType.

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

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