Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 //
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-792 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
 // Generated on: 2009.09.10 at 10:11:39 AM CEST 
 //
 
 
 package org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap12;

Java class for useChoice.

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

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