import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="{{classname}}")
@XmlEnum
public enum {{classname}} {
    {{#allowableValues}}{{.}}{{^-last}}, {{/-last}}{{#-last}};{{/-last}}{{/allowableValues}}
    
    public String value() {
        return name();
    }

    public static {{classname}} fromValue(String v) {
        return valueOf(v);
    }
}