Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for MediumFormatCapabilities.

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

 <simpleType name="MediumFormatCapabilities">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Uuid"/>
     <enumeration value="CreateFixed"/>
     <enumeration value="CreateDynamic"/>
     <enumeration value="CreateSplit2G"/>
     <enumeration value="Differencing"/>
     <enumeration value="Asynchronous"/>
     <enumeration value="File"/>
     <enumeration value="Properties"/>
     <enumeration value="TcpNetworking"/>
     <enumeration value="VFS"/>
     <enumeration value="CapabilityMask"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "MediumFormatCapabilities")
    @XmlEnumValue("Uuid")
    UUID("Uuid"),
    @XmlEnumValue("CreateFixed")
    CREATE_FIXED("CreateFixed"),
    @XmlEnumValue("CreateDynamic")
    CREATE_DYNAMIC("CreateDynamic"),
    @XmlEnumValue("CreateSplit2G")
    CREATE_SPLIT_2_G("CreateSplit2G"),
    @XmlEnumValue("Differencing")
    DIFFERENCING("Differencing"),
    @XmlEnumValue("Asynchronous")
    ASYNCHRONOUS("Asynchronous"),
    @XmlEnumValue("File")
    FILE("File"),
    @XmlEnumValue("Properties")
    PROPERTIES("Properties"),
    @XmlEnumValue("TcpNetworking")
    TCP_NETWORKING("TcpNetworking"),
    VFS("VFS"),
    @XmlEnumValue("CapabilityMask")
    CAPABILITY_MASK("CapabilityMask");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static MediumFormatCapabilities fromValue(String v) {
        for (MediumFormatCapabilities c: MediumFormatCapabilities.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X