Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for DataFlags.

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

 <simpleType name="DataFlags">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="None"/>
     <enumeration value="Mandatory"/>
     <enumeration value="Expert"/>
     <enumeration value="Array"/>
     <enumeration value="FlagMask"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "DataFlags")
public enum DataFlags {
    @XmlEnumValue("None")
    NONE("None"),
    @XmlEnumValue("Mandatory")
    MANDATORY("Mandatory"),
    @XmlEnumValue("Expert")
    EXPERT("Expert"),
    @XmlEnumValue("Array")
    ARRAY("Array"),
    @XmlEnumValue("FlagMask")
    FLAG_MASK("FlagMask");
    private final String value;
    DataFlags(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static DataFlags fromValue(String v) {
        for (DataFlags c: DataFlags.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X