Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for AdditionsFacilityStatus.

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

 <simpleType name="AdditionsFacilityStatus">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Inactive"/>
     <enumeration value="Paused"/>
     <enumeration value="PreInit"/>
     <enumeration value="Init"/>
     <enumeration value="Active"/>
     <enumeration value="Terminating"/>
     <enumeration value="Terminated"/>
     <enumeration value="Failed"/>
     <enumeration value="Unknown"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "AdditionsFacilityStatus")
public enum AdditionsFacilityStatus {
    @XmlEnumValue("Inactive")
    INACTIVE("Inactive"),
    @XmlEnumValue("Paused")
    PAUSED("Paused"),
    @XmlEnumValue("PreInit")
    PRE_INIT("PreInit"),
    @XmlEnumValue("Init")
    INIT("Init"),
    @XmlEnumValue("Active")
    ACTIVE("Active"),
    @XmlEnumValue("Terminating")
    TERMINATING("Terminating"),
    @XmlEnumValue("Terminated")
    TERMINATED("Terminated"),
    @XmlEnumValue("Failed")
    FAILED("Failed"),
    @XmlEnumValue("Unknown")
    UNKNOWN("Unknown");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static AdditionsFacilityStatus fromValue(String v) {
        for (AdditionsFacilityStatus c: AdditionsFacilityStatus.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X