DocumentTypeNames.java

  1. /*
  2.  * Copyright 2010 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.  * The Enum DocumentTypeNames.
  22.  */
  23. public enum DocumentTypeNames {

  24.     /** The account and report. */
  25.     ACCOUNT_AND_REPORT("frsrdg","Framställning och redogörelse"),

  26.     /** The agenda. */
  27.     AGENDA("f-lista","Föredragningslista"),

  28.     /** The answer to question. */
  29.     ANSWER_TO_QUESTION("frs","Svar på skriftlig fråga"),

  30.     /** The attachement. */
  31.     ATTACHEMENT("bilaga","Bilaga"),

  32.     /** The bill. */
  33.     BILL("mot","Motion"),

  34.     /** The committee document. */
  35.     COMMITTEE_DOCUMENT("utskottsdokument","Utskottsdokument"),

  36.     /** The committee report. */
  37.     COMMITTEE_REPORT("bet","Betänkande"),

  38.     /** The committee story. */
  39.     COMMITTEE_STORY("komm","Kommittéberättelser"),

  40.     /** The communication. */
  41.     COMMUNICATION("skr","Skrivelse"),

  42.     /** The department serie. */
  43.     DEPARTMENT_SERIE("ds","Departementsserien (Ds)"),

  44.     /** The directive. */
  45.     DIRECTIVE("dir","Direktiv"),

  46.     /** The eu committee. */
  47.     EU_COMMITTEE("eundok","EU-nämndsdokument"),

  48.     /** The eu committee attachement. */
  49.     EU_COMMITTEE_ATTACHEMENT("eunbil","Bilaga till EU-nämndsdokument"),

  50.     /** The eu committee notes. */
  51.     EU_COMMITTEE_NOTES("eunprot","EU-nämndens stenografiska uppteckningar"),

  52.     /** The eu committee summons and agenda. */
  53.     EU_COMMITTEE_SUMMONS_AND_AGENDA("kf-lista","EU-nämndens kallelser och föredragningslistor"),

  54.     /** The fact memorandum. */
  55.     FACT_MEMORANDUM("fpm","Faktapromemoria"),

  56.     /** The inspection report. */
  57.     INSPECTION_REPORT("rir","Granskningsrapport"),

  58.     /** The interpellation. */
  59.     INTERPELLATION("ip","Interpellation"),

  60.     /** The minister memorandum. */
  61.     MINISTER_MEMORANDUM("minråd","Ministerrådspromemoria"),

  62.     /** The parliament communication. */
  63.     PARLIAMENT_COMMUNICATION("rskr","Riksdagsskrivelse"),

  64.     /** The parliament report. */
  65.     PARLIAMENT_REPORT("rfr","Rapport från riksdagen"),

  66.     /** The proposition. */
  67.     PROPOSITION("prop","Propositioner"),

  68.     /** The protocol. */
  69.     PROTOCOL("prot","Protokoll"),

  70.     /** The public investigation. */
  71.     PUBLIC_INVESTIGATION("sou","Statens offentliga utredningar (SOU)"),

  72.     /** The question. */
  73.     QUESTION("fr","Skriftlig fråga"),

  74.     /** The speaker list. */
  75.     SPEAKER_LIST("t-lista","Talarlista"),

  76.     /** The swedish code of statutes. */
  77.     SWEDISH_CODE_OF_STATUTES("sfs","Svensk författningssamling"),

  78.     /** The statement. */
  79.     STATEMENT("yttr","Yttrande");

  80.     /** The description. */
  81.     private final String description;

  82.     /** The short code. */
  83.     private final String shortCode;

  84.     /**
  85.      * Instantiates a new document type names.
  86.      *
  87.      * @param shortCode
  88.      *            the short code
  89.      * @param description
  90.      *            the description
  91.      */
  92.     DocumentTypeNames(final String shortCode,final String description) {
  93.         this.shortCode = shortCode;
  94.         this.description = description;
  95.     }

  96.     /**
  97.      * Gets the description.
  98.      *
  99.      * @return the description
  100.      */
  101.     public String getDescription() {
  102.         return description;
  103.     }

  104.     /**
  105.      * Gets the short code.
  106.      *
  107.      * @return the short code
  108.      */
  109.     public String getShortCode() {
  110.         return shortCode;
  111.     }

  112. }