Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for FaultToleranceState.

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

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