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
35 * @throws java.lang.NoSuchMethodException If the invoked method was not found
37 public Iterator<Map.Entry<Field, Object>> iterator ()throws NoSuchMethodException;
40 * Some "getter" for translated gender of the contact
42 * @return Translated / human-readable gender
44 public String getTranslatedGender ();
47 * Gender of the contact
51 public Gender getGender ();
54 * Gender of the contact
56 * @param gender the gender to set
58 public void setGender (final Gender gender);
65 public String getSurname ();
70 * @param surname the surname to set
72 public void setSurname (final String surname);
77 * @return the familyName
79 public String getFamilyName ();
84 * @param familyName the familyName to set
86 public void setFamilyName (final String familyName);
91 * @return the companyName
93 public String getCompanyName ();
98 * @param companyName the companyName to set
100 public void setCompanyName (final String companyName);
107 public String getStreet ();
112 * @param street the street to set
114 public void setStreet (final String street);
119 * @return the houseNumber
121 public Long getHouseNumber ();
126 * @param houseNumber the houseNumber to set
128 public void setHouseNumber (final Long houseNumber);
133 * @return the zipCode
135 public Long getZipCode ();
140 * @param zipCode the zipCode to set
142 public void setZipCode (final Long zipCode);
149 public String getCity ();
154 * @param city the city to set
156 public void setCity (final String city);
161 * @return the countryCode
163 public String getCountryCode ();
168 * @param countryCode the countryCode to set
170 public void setCountryCode (final String countryCode);
175 * @return the emailAddress
177 public String getEmailAddress ();
182 * @param emailAddress the emailAddress to set
184 public void setEmailAddress (final String emailAddress);
189 * @return the phoneNumber
191 public String getPhoneNumber ();
196 * @param phoneNumber the phoneNumber to set
198 public void setPhoneNumber (final String phoneNumber);
203 * @return the faxNumber
205 public String getFaxNumber ();
210 * @param faxNumber the faxNumber to set
212 public void setFaxNumber (final String faxNumber);
217 * @return the cellphoneNumber
219 public String getCellphoneNumber ();
224 * @param cellphoneNumber the cellphoneNumber to set
226 public void setCellphoneNumber (final String cellphoneNumber);
231 * @return the birthday
233 public String getBirthday ();
238 * @param birthday the birthday to set
240 public void setBirthday (final String birthday);
245 * @return the comment
247 public String getComment ();
252 * @param comment the comment to set
254 public void setComment (final String comment);
257 * Checks whether the contact is user's own data
261 public boolean isOwnContact ();
264 * Shows the contact to the user
266 * @param client Client instance to call back
268 public void show (final Client client);