2 * Copyright (C) 2015 Roland Haeder
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.
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.
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/>.
17 package org.mxchange.jcore.contact;
19 import org.mxchange.jcore.BaseFrameworkSystem;
24 * @author Roland Haeder
31 UNKNOWN("BaseContact.gender.unknown.text"),
35 MALE("BaseContact.gender.male.text"),
39 FEMALE("BaseContact.gender.female.text"),
43 COMPANY("BaseContact.gender.company.text");
46 * Output value (for messages)
48 private final String messageKey;
53 * @param messageKey Message key for resource file
55 private Gender (final String messageKey) {
56 this.messageKey = messageKey;
60 * Output value (for messages)
62 * @return the messageKey
64 public String getMessageKey () {
65 return this.messageKey;
69 * Overwritten to return human-readable strings
71 * @return Human-readable strings
74 public String toString () {
75 // Get key from bundle and return it
76 return BaseFrameworkSystem.getInstance().getMessageStringFromKey(this.getMessageKey());