View Javadoc
1   /*
2    * Copyright 2016 James Pether Sörling
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   *	$Id$
17   *  $HeadURL$
18  */
19  package com.hack23.cia.service.external.riksdagen.api;
20  
21  /**
22   * The Enum DocumentTypeNames.
23   */
24  public enum DocumentTypeNames {
25  
26  	/** The account and report. */
27  	ACCOUNT_AND_REPORT("frsrdg","Framställning och redogörelse"),
28  
29  	/** The agenda. */
30  	AGENDA("f-lista","Föredragningslista"),
31  
32  	/** The answer to question. */
33  	ANSWER_TO_QUESTION("frs","Svar på skriftlig fråga"),
34  
35  	/** The attachement. */
36  	ATTACHEMENT("bilaga","Bilaga"),
37  
38  	/** The bill. */
39  	BILL("mot","Motion"),
40  
41  	/** The committee document. */
42  	COMMITTEE_DOCUMENT("utskottsdokument","Utskottsdokument"),
43  
44  	/** The committee report. */
45  	COMMITTEE_REPORT("bet","Betänkande"),
46  
47  	/** The committee story. */
48  	COMMITTEE_STORY("komm","Kommittéberättelser"),
49  
50  	/** The communication. */
51  	COMMUNICATION("skr","Skrivelse"),
52  
53  	/** The department serie. */
54  	DEPARTMENT_SERIE("ds","Departementsserien (Ds)"),
55  
56  	/** The directive. */
57  	DIRECTIVE("dir","Direktiv"),
58  
59  	/** The eu committee. */
60  	EU_COMMITTEE("eundok","EU-nämndsdokument"),
61  
62  	/** The eu committee attachement. */
63  	EU_COMMITTEE_ATTACHEMENT("eunbil","Bilaga till EU-nämndsdokument"),
64  
65  	/** The eu committee notes. */
66  	EU_COMMITTEE_NOTES("eunprot","EU-nämndens stenografiska uppteckningar"),
67  
68  	/** The eu committee summons and agenda. */
69  	EU_COMMITTEE_SUMMONS_AND_AGENDA("kf-lista","EU-nämndens kallelser och föredragningslistor"),
70  
71  	/** The fact memorandum. */
72  	FACT_MEMORANDUM("fpm","Faktapromemoria"),
73  
74  	/** The inspection report. */
75  	INSPECTION_REPORT("rir","Granskningsrapport"),
76  
77  	/** The interpellation. */
78  	INTERPELLATION("ip","Interpellation"),
79  
80  	/** The minister memorandum. */
81  	MINISTER_MEMORANDUM("minråd","Ministerrådspromemoria"),
82  
83  	/** The parliament communication. */
84  	PARLIAMENT_COMMUNICATION("rskr","Riksdagsskrivelse"),
85  
86  	/** The parliament report. */
87  	PARLIAMENT_REPORT("rfr","Rapport från riksdagen"),
88  
89  	/** The proposition. */
90  	PROPOSITION("prop","Propositioner"),
91  
92  	/** The protocol. */
93  	PROTOCOL("prot","Protokoll"),
94  
95  	/** The public investigation. */
96  	PUBLIC_INVESTIGATION("sou","Statens offentliga utredningar (SOU)"),
97  
98  	/** The question. */
99  	QUESTION("fr","Skriftlig fråga"),
100 
101 	/** The speaker list. */
102 	SPEAKER_LIST("t-lista","Talarlista"),
103 
104 	/** The swedish code of statutes. */
105 	SWEDISH_CODE_OF_STATUTES("sfs","Svensk författningssamling"),
106 
107 	/** The statement. */
108 	STATEMENT("yttr","Yttrande");
109 
110 	/** The description. */
111 	private final String description;
112 
113 	/** The short code. */
114 	private final String shortCode;
115 
116 	/**
117 	 * Instantiates a new document type names.
118 	 *
119 	 * @param shortCode
120 	 *            the short code
121 	 * @param description
122 	 *            the description
123 	 */
124 	DocumentTypeNames(final String shortCode,final String description) {
125 		this.shortCode = shortCode;
126 		this.description = description;
127 	}
128 
129 	/**
130 	 * Gets the description.
131 	 *
132 	 * @return the description
133 	 */
134 	public String getDescription() {
135 		return description;
136 	}
137 
138 	/**
139 	 * Gets the short code.
140 	 *
141 	 * @return the short code
142 	 */
143 	public String getShortCode() {
144 		return shortCode;
145 	}
146 
147 }