2 * Copyright (C) 2015 Roland Haeder
\r
4 * This program is free software: you can redistribute it and/or modify
\r
5 * it under the terms of the GNU General Public License as published by
\r
6 * the Free Software Foundation, either version 3 of the License, or
\r
7 * (at your option) any later version.
\r
9 * This program is distributed in the hope that it will be useful,
\r
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
12 * GNU General Public License for more details.
\r
14 * You should have received a copy of the GNU General Public License
\r
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
\r
17 package org.mxchange.addressbook.contact.user;
\r
19 import org.mxchange.addressbook.contact.Contact;
\r
20 import org.mxchange.addressbook.contact.book.BookContact;
\r
21 import org.mxchange.addressbook.database.storage.csv.StoreableCsv;
\r
25 * @author Roland Haeder
\r
26 * @todo After a Collection has been used in ContactManager, change to BaseContact
\r
28 public class UserContact extends BookContact implements Contact, StoreableCsv {
\r
31 * Creates own contact entry
\r
33 * @param gender Gender to be set
\r
34 * @param surname Surname to be set
\r
35 * @param familyName Family name to be set
\r
36 * @param companyName Company name
\r
37 * @todo Add validation of data
\r
39 public UserContact (final char gender, final String surname, final String familyName, final String companyName) {
\r
40 // Make sure all constructors are called
\r
43 this.setGender(gender);
\r
44 this.setSurname(surname);
\r
45 this.setFamilyName(familyName);
\r
46 this.setCompanyName(companyName);
\r
50 * Default constructor, may only be used from database backend
\r
52 public UserContact () {
\r
53 this.enableFlagOwnContact();
\r