DocumentType.java

/*
 * Copyright 2010 James Pether Sörling
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *	$Id$
 *  $HeadURL$
*/
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// 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: 2019.02.24 at 11:40:02 PM CET 
//


package com.hack23.cia.model.external.riksdagen.dokumentlista.impl;

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


/**
 * The Enum DocumentType.
 */
@XmlType(name = "DocumentType")
@XmlEnum
public enum DocumentType {

    /** The bet. */
    @XmlEnumValue("bet")
    BET("bet"),
    
    /** The bilaga. */
    @XmlEnumValue("bilaga")
    BILAGA("bilaga"),
    
    /** The eunbil. */
    @XmlEnumValue("eunbil")
    EUNBIL("eunbil"),
    
    /** The ds. */
    @XmlEnumValue("ds")
    DS("ds"),
    
    /** The dir. */
    @XmlEnumValue("dir")
    DIR("dir"),
    
    /** The kf lista. */
    @XmlEnumValue("kf-lista")
    KF_LISTA("kf-lista"),
    
    /** The eunprot. */
    @XmlEnumValue("eunprot")
    EUNPROT("eunprot"),
    
    /** The eundok. */
    @XmlEnumValue("eundok")
    EUNDOK("eundok"),
    
    /** The fpm. */
    @XmlEnumValue("fpm")
    FPM("fpm"),
    
    /** The frsrdg. */
    @XmlEnumValue("frsrdg")
    FRSRDG("frsrdg"),
    
    /** The f lista. */
    @XmlEnumValue("f-lista")
    F_LISTA("f-lista"),
    
    /** The rir. */
    @XmlEnumValue("rir")
    RIR("rir"),
    
    /** The ip. */
    @XmlEnumValue("ip")
    IP("ip"),
    
    /** The komm. */
    @XmlEnumValue("komm")
    KOMM("komm"),
    
    /** The MINRÅD. */
    @XmlEnumValue("minr\u00e5d")
    MINRÅD("minr\u00e5d"),
    
    /** The mot. */
    @XmlEnumValue("mot")
    MOT("mot"),
    
    /** The prop. */
    @XmlEnumValue("prop")
    PROP("prop"),
    
    /** The prot. */
    @XmlEnumValue("prot")
    PROT("prot"),
    
    /** The rfr. */
    @XmlEnumValue("rfr")
    RFR("rfr"),
    
    /** The rskr. */
    @XmlEnumValue("rskr")
    RSKR("rskr"),
    
    /** The fr. */
    @XmlEnumValue("fr")
    FR("fr"),
    
    /** The skr. */
    @XmlEnumValue("skr")
    SKR("skr"),
    
    /** The sou. */
    @XmlEnumValue("sou")
    SOU("sou"),
    
    /** The frs. */
    @XmlEnumValue("frs")
    FRS("frs"),
    
    /** The sfs. */
    @XmlEnumValue("sfs")
    SFS("sfs"),
    
    /** The t lista. */
    @XmlEnumValue("t-lista")
    T_LISTA("t-lista"),
    
    /** The utskottsdokument. */
    @XmlEnumValue("utskottsdokument")
    UTSKOTTSDOKUMENT("utskottsdokument"),
    
    /** The yttr. */
    @XmlEnumValue("yttr")
    YTTR("yttr"),
    
    /** The plan. */
    @XmlEnumValue("plan")
    PLAN("plan"),
    
    /** The uttag. */
    @XmlEnumValue("uttag")
    UTTAG("uttag"),
    
    /** The xxutskottsdokument. */
    @XmlEnumValue("xxutskottsdokument")
    XXUTSKOTTSDOKUMENT("xxutskottsdokument");
    
    /** The value. */
    private final String value;

    /**
	 * Instantiates a new document type.
	 *
	 * @param v the v
	 */
    DocumentType(final String v) {
        value = v;
    }

    /**
	 * Value.
	 *
	 * @return the string
	 */
    public String value() {
        return value;
    }

    /**
	 * From value.
	 *
	 * @param v the v
	 * @return the document type
	 */
    public static DocumentType fromValue(final String v) {
        for (final DocumentType c: DocumentType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}