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 java.lang.reflect.Field;
20 import java.util.Iterator;
22 import org.mxchange.jcore.FrameworkInterface;
23 import org.mxchange.jcore.client.Client;
26 * A general contact interface
28 * @author Roland Haeder
30 public interface Contact extends FrameworkInterface {
32 * Returns an iterator of all values from this object
36 public Iterator<Map.Entry<Field, Object>> iterator ();
39 * Some "getter" for translated gender of the contact
41 * @return Translated / human-readable gender
43 public String getTranslatedGender ();
46 * Gender of the contact
50 public Gender getGender ();
53 * Gender of the contact
55 * @param gender the gender to set
57 public void setGender (final Gender gender);
64 public String getSurname ();
69 * @param surname the surname to set
71 public void setSurname (final String surname);
76 * @return the familyName
78 public String getFamilyName ();
83 * @param familyName the familyName to set
85 public void setFamilyName (final String familyName);
90 * @return the companyName
92 public String getCompanyName ();
97 * @param companyName the companyName to set
99 public void setCompanyName (final String companyName);
106 public String getStreet ();
111 * @param street the street to set
113 public void setStreet (final String street);
118 * @return the houseNumber
120 public Long getHouseNumber ();
125 * @param houseNumber the houseNumber to set
127 public void setHouseNumber (final Long houseNumber);
132 * @return the zipCode
134 public Long getZipCode ();
139 * @param zipCode the zipCode to set
141 public void setZipCode (final Long zipCode);
148 public String getCity ();
153 * @param city the city to set
155 public void setCity (final String city);
160 * @return the countryCode
162 public String getCountryCode ();
167 * @param countryCode the countryCode to set
169 public void setCountryCode (final String countryCode);
174 * @return the emailAddress
176 public String getEmailAddress ();
181 * @param emailAddress the emailAddress to set
183 public void setEmailAddress (final String emailAddress);
188 * @return the phoneNumber
190 public String getPhoneNumber ();
195 * @param phoneNumber the phoneNumber to set
197 public void setPhoneNumber (final String phoneNumber);
202 * @return the faxNumber
204 public String getFaxNumber ();
209 * @param faxNumber the faxNumber to set
211 public void setFaxNumber (final String faxNumber);
216 * @return the cellphoneNumber
218 public String getCellphoneNumber ();
223 * @param cellphoneNumber the cellphoneNumber to set
225 public void setCellphoneNumber (final String cellphoneNumber);
230 * @return the birthday
232 public String getBirthday ();
237 * @param birthday the birthday to set
239 public void setBirthday (final String birthday);
244 * @return the comment
246 public String getComment ();
251 * @param comment the comment to set
253 public void setComment (final String comment);
256 * Checks whether the contact is user's own data
260 public boolean isOwnContact ();
263 * Shows the contact to the user
265 * @param client Client instance to call back
267 public void show (final Client client);