Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for CloneOptions.

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

 <simpleType name="CloneOptions">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Link"/>
     <enumeration value="KeepAllMACs"/>
     <enumeration value="KeepNATMACs"/>
     <enumeration value="KeepDiskNames"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "CloneOptions")
public enum CloneOptions {
    @XmlEnumValue("Link")
    LINK("Link"),
    @XmlEnumValue("KeepAllMACs")
    KEEP_ALL_MA_CS("KeepAllMACs"),
    @XmlEnumValue("KeepNATMACs")
    KEEP_NATMA_CS("KeepNATMACs"),
    @XmlEnumValue("KeepDiskNames")
    KEEP_DISK_NAMES("KeepDiskNames");
    private final String value;
    CloneOptions(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static CloneOptions fromValue(String v) {
        for (CloneOptions c: CloneOptions.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X