Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for DataType.

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

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