Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for AdditionsUpdateFlag.

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

 <simpleType name="AdditionsUpdateFlag">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="None"/>
     <enumeration value="WaitForUpdateStartOnly"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "AdditionsUpdateFlag")
public enum AdditionsUpdateFlag {
    @XmlEnumValue("None")
    NONE("None"),
    @XmlEnumValue("WaitForUpdateStartOnly")
    WAIT_FOR_UPDATE_START_ONLY("WaitForUpdateStartOnly");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static AdditionsUpdateFlag fromValue(String v) {
        for (AdditionsUpdateFlag c: AdditionsUpdateFlag.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X