2 * Copyright (C) 2016, 2017 Roland Häder
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.jcontacts.model.contact.title;
19 import java.io.Serializable;
22 * An enumeration for personal titles. If you need the gender instead, please
23 * use the other enumeration instead.
25 * @author Roland Häder<roland@mxchange.org>
27 public enum PersonalTitle implements Serializable {
32 MR('M', "PERSONAL_TITLE_MR"), //NOI18N
37 MRS('F', "PERSONAL_TITLE_MRS"); //NOI18N
40 * Access key being entered by ConsoleClient
42 private final char accessChar;
45 * Output value (for messages)
47 private final String messageKey;
52 * @param accessChar Value being entered by ConsoleClient
53 * @param messageKey Message key for resource file
55 private PersonalTitle (final char accessChar, final String messageKey) {
57 this.accessChar = accessChar;
58 this.messageKey = messageKey;
62 * Access key (console client mostly)
64 * @return the accessChar
66 public char getAccessChar () {
67 return this.accessChar;
71 * Output value (for messages)
73 * @return the messageKey
75 public String getMessageKey () {
76 return this.messageKey;