Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for ProcessStatus.

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

 <simpleType name="ProcessStatus">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="Undefined"/>
     <enumeration value="Starting"/>
     <enumeration value="Started"/>
     <enumeration value="Paused"/>
     <enumeration value="Terminating"/>
     <enumeration value="TerminatedNormally"/>
     <enumeration value="TerminatedSignal"/>
     <enumeration value="TerminatedAbnormally"/>
     <enumeration value="TimedOutKilled"/>
     <enumeration value="TimedOutAbnormally"/>
     <enumeration value="Down"/>
     <enumeration value="Error"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "ProcessStatus")
public enum ProcessStatus {
    @XmlEnumValue("Undefined")
    UNDEFINED("Undefined"),
    @XmlEnumValue("Starting")
    STARTING("Starting"),
    @XmlEnumValue("Started")
    STARTED("Started"),
    @XmlEnumValue("Paused")
    PAUSED("Paused"),
    @XmlEnumValue("Terminating")
    TERMINATING("Terminating"),
    @XmlEnumValue("TerminatedNormally")
    TERMINATED_NORMALLY("TerminatedNormally"),
    @XmlEnumValue("TerminatedSignal")
    TERMINATED_SIGNAL("TerminatedSignal"),
    @XmlEnumValue("TerminatedAbnormally")
    TERMINATED_ABNORMALLY("TerminatedAbnormally"),
    @XmlEnumValue("TimedOutKilled")
    TIMED_OUT_KILLED("TimedOutKilled"),
    @XmlEnumValue("TimedOutAbnormally")
    TIMED_OUT_ABNORMALLY("TimedOutAbnormally"),
    @XmlEnumValue("Down")
    DOWN("Down"),
    @XmlEnumValue("Error")
    ERROR("Error");
    private final String value;
    ProcessStatus(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static ProcessStatus fromValue(String v) {
        for (ProcessStatus c: ProcessStatus.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X