Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for ProcessPriority.

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

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