
package gov.va.med.esr.vbr.webservice;

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


/**
 * <p>Java class for documentType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="documentType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="Handbook self generated by Veteran"/>
 *     &lt;enumeration value="Handbook auto generated by System"/>
 *     &lt;enumeration value="Benefits at a Glance self generated by Veteran"/>
 *     &lt;enumeration value="Benefits at a Glance auto generated by system"/>
 *     &lt;enumeration value="Health Benefits Plan Data String"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "documentType")
@XmlEnum
public enum DocumentType {

    @XmlEnumValue("Handbook self generated by Veteran")
    HANDBOOK_SELF_GENERATED_BY_VETERAN("Handbook self generated by Veteran"),
    @XmlEnumValue("Handbook auto generated by System")
    HANDBOOK_AUTO_GENERATED_BY_SYSTEM("Handbook auto generated by System"),
    @XmlEnumValue("Benefits at a Glance self generated by Veteran")
    BENEFITS_AT_A_GLANCE_SELF_GENERATED_BY_VETERAN("Benefits at a Glance self generated by Veteran"),
    @XmlEnumValue("Benefits at a Glance auto generated by system")
    BENEFITS_AT_A_GLANCE_AUTO_GENERATED_BY_SYSTEM("Benefits at a Glance auto generated by system"),
    @XmlEnumValue("Health Benefits Plan Data String")
    HEALTH_BENEFITS_PLAN_DATA_STRING("Health Benefits Plan Data String");
    private final String value;

    DocumentType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static DocumentType fromValue(String v) {
        for (DocumentType c: DocumentType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
