]> git.mxchange.org Git - jjobs-core.git/blob - src/org/mxchange/jjobs/model/skill/status/SkillStatus.java
Updated copyright year
[jjobs-core.git] / src / org / mxchange / jjobs / model / skill / status / SkillStatus.java
1 /*
2  * Copyright (C) 2016 - 2022 Free Software Foundation
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 package org.mxchange.jjobs.model.skill.status;
18
19 /**
20  * An enumeration for skills
21  * <p>
22  * @author Roland Häder<roland@mxchange.org>
23  */
24 public enum SkillStatus {
25
26         /**
27          * Unlocked (added, can be used)
28          */
29         UNLOCKED("SKILL_STATUS_UNLOCKED", "skill_status_unlocked"), //NOI18N
30
31         /**
32          * Locked by administrator
33          */
34         LOCKED("SKILL_STATUS_LOCKED", "skill_status_locked"); //NOI18N
35
36         /**
37          * Message key for i18n bundles
38          */
39         private final String messageKey;
40
41         /**
42          * CSS class
43          */
44         private final String styleClass;
45
46         /**
47          * Constructor with message key for i18n bundles and CSS class
48          * <p>
49          * @param messageKey Message key for i18n bundles
50          * @param styleClass CSS class
51          */
52         private SkillStatus (final String messageKey, final String styleClass) {
53                 // Set al
54                 this.messageKey = messageKey;
55                 this.styleClass = styleClass;
56         }
57
58         /**
59          * Getter for message key
60          * <p>
61          * @return Message key
62          */
63         public String getMessageKey () {
64                 return this.messageKey;
65         }
66
67         /**
68          * CSS class
69          * <p>
70          * @return CSS class
71          */
72         public String getStyleClass () {
73                 return this.styleClass;
74         }
75
76 }