Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for ImportOptions.

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

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