Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for DeviceType.

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

 <simpleType name="DeviceType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Null"/>
     <enumeration value="Floppy"/>
     <enumeration value="DVD"/>
     <enumeration value="HardDisk"/>
     <enumeration value="Network"/>
     <enumeration value="USB"/>
     <enumeration value="SharedFolder"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "DeviceType")
public enum DeviceType {
    @XmlEnumValue("Null")
    NULL("Null"),
    @XmlEnumValue("Floppy")
    FLOPPY("Floppy"),
    DVD("DVD"),
    @XmlEnumValue("HardDisk")
    HARD_DISK("HardDisk"),
    @XmlEnumValue("Network")
    NETWORK("Network"),
    USB("USB"),
    @XmlEnumValue("SharedFolder")
    SHARED_FOLDER("SharedFolder");
    private final String value;
    DeviceType(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static DeviceType fromValue(String v) {
        for (DeviceType c: DeviceType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X