Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for MediumVariant.

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

 <simpleType name="MediumVariant">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Standard"/>
     <enumeration value="VmdkSplit2G"/>
     <enumeration value="VmdkRawDisk"/>
     <enumeration value="VmdkStreamOptimized"/>
     <enumeration value="VmdkESX"/>
     <enumeration value="Fixed"/>
     <enumeration value="Diff"/>
     <enumeration value="NoCreateDir"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "MediumVariant")
public enum MediumVariant {
    @XmlEnumValue("Standard")
    STANDARD("Standard"),
    @XmlEnumValue("VmdkSplit2G")
    VMDK_SPLIT_2_G("VmdkSplit2G"),
    @XmlEnumValue("VmdkRawDisk")
    VMDK_RAW_DISK("VmdkRawDisk"),
    @XmlEnumValue("VmdkStreamOptimized")
    VMDK_STREAM_OPTIMIZED("VmdkStreamOptimized"),
    @XmlEnumValue("VmdkESX")
    VMDK_ESX("VmdkESX"),
    @XmlEnumValue("Fixed")
    FIXED("Fixed"),
    @XmlEnumValue("Diff")
    DIFF("Diff"),
    @XmlEnumValue("NoCreateDir")
    NO_CREATE_DIR("NoCreateDir");
    private final String value;
    MediumVariant(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static MediumVariant fromValue(String v) {
        for (MediumVariant c: MediumVariant.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X