Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for CleanupMode.

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

 <simpleType name="CleanupMode">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="UnregisterOnly"/>
     <enumeration value="DetachAllReturnNone"/>
     <enumeration value="DetachAllReturnHardDisksOnly"/>
     <enumeration value="Full"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "CleanupMode")
public enum CleanupMode {
    @XmlEnumValue("UnregisterOnly")
    UNREGISTER_ONLY("UnregisterOnly"),
    @XmlEnumValue("DetachAllReturnNone")
    DETACH_ALL_RETURN_NONE("DetachAllReturnNone"),
    @XmlEnumValue("DetachAllReturnHardDisksOnly")
    DETACH_ALL_RETURN_HARD_DISKS_ONLY("DetachAllReturnHardDisksOnly"),
    @XmlEnumValue("Full")
    FULL("Full");
    private final String value;
    CleanupMode(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static CleanupMode fromValue(String v) {
        for (CleanupMode c: CleanupMode.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X