Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for ProcessWaitResult.

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

 <simpleType name="ProcessWaitResult">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="None"/>
     <enumeration value="Start"/>
     <enumeration value="Terminate"/>
     <enumeration value="Status"/>
     <enumeration value="Error"/>
     <enumeration value="Timeout"/>
     <enumeration value="StdIn"/>
     <enumeration value="StdOut"/>
     <enumeration value="StdErr"/>
     <enumeration value="WaitFlagNotSupported"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "ProcessWaitResult")
public enum ProcessWaitResult {
    @XmlEnumValue("None")
    NONE("None"),
    @XmlEnumValue("Start")
    START("Start"),
    @XmlEnumValue("Terminate")
    TERMINATE("Terminate"),
    @XmlEnumValue("Status")
    STATUS("Status"),
    @XmlEnumValue("Error")
    ERROR("Error"),
    @XmlEnumValue("Timeout")
    TIMEOUT("Timeout"),
    @XmlEnumValue("StdIn")
    STD_IN("StdIn"),
    @XmlEnumValue("StdOut")
    STD_OUT("StdOut"),
    @XmlEnumValue("StdErr")
    STD_ERR("StdErr"),
    @XmlEnumValue("WaitFlagNotSupported")
    WAIT_FLAG_NOT_SUPPORTED("WaitFlagNotSupported");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static ProcessWaitResult fromValue(String v) {
        for (ProcessWaitResult c: ProcessWaitResult.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X