X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Addressbook%2Fsrc%2Forg%2Fmxchange%2Faddressbook%2Fcontact%2FContact.java;h=629e796c0948b5e882077ae075e614363248c8bb;hb=16289838616dbf25d96a20f82164415d40181e46;hp=2860ee209332ae0a29b5cf7876eca6d458a3b8b3;hpb=00c8762778cdc63923406bb356f3c922326a8030;p=jfinancials-lib.git
diff --git a/Addressbook/src/org/mxchange/addressbook/contact/Contact.java b/Addressbook/src/org/mxchange/addressbook/contact/Contact.java
index 2860ee2..629e796 100644
--- a/Addressbook/src/org/mxchange/addressbook/contact/Contact.java
+++ b/Addressbook/src/org/mxchange/addressbook/contact/Contact.java
@@ -1,184 +1,194 @@
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-package org.mxchange.addressbook.contact;
-
-import org.mxchange.addressbook.FrameworkInterface;
-import org.mxchange.addressbook.client.Client;
-
-/**
- *
- * @author Roland Haeder
- */
-public interface Contact extends FrameworkInterface {
-
- /**
- * Some "getter" for translated gender of the contact
- * @return Translated / human-readable gender
- */
- public String getTranslatedGender();
-
- /**
- * Checks whether the contact is user's own data
- *
- * @return Own data?
- */
- public boolean isOwnContact();
-
- /**
- * Gender of the contact
- *
- * @return the gender
- */
- public char getGender();
-
- /**
- * Surname
- *
- * @return the surname
- */
- public String getSurname();
-
- /**
- * Family name
- *
- * @return the familyName
- */
- public String getFamilyName();
-
- /**
- * Companyname
- *
- * @return the companyName
- */
- public String getCompanyName();
-
- /**
- * Street
- *
- * @return the street
- */
- public String getStreet();
-
- /**
- * House number
- *
- * @return the houseNumber
- */
- public int getHouseNumber();
-
- /**
- * ZIP code
- *
- * @return the zipCode
- */
- public long getZipCode();
-
- /**
- * City
- *
- * @return the city
- */
- public String getCity();
-
- /**
- * Country code
- *
- * @return the countryCode
- */
- public String getCountryCode();
-
- /**
- * Email address
- *
- * @return the emailAddress
- */
- public String getEmailAddress();
-
- /**
- * Phone number
- *
- * @return the phoneNumber
- */
- public String getPhoneNumber();
-
- /**
- * Fax number
- *
- * @return the faxNumber
- */
- public String getFaxNumber();
-
- /**
- * Cellphone number
- *
- * @return the cellphoneNumber
- */
- public String getCellphoneNumber();
-
- /**
- * Birth day
- *
- * @return the birthday
- */
- public String getBirthday();
-
- /**
- * Comments
- *
- * @return the comment
- */
- public String getComment();
-
- /**
- * Shows the contact to the user
- *
- * @param client Client instance to call back
- */
- public void show (final Client client);
-
- /**
- * Updates address data in this Contact instance
- *
- * @param street Street
- * @param zipCode ZIP code
- * @param city City
- * @param countryCode Country code
- */
- public void updateAddressData (final String street, final long zipCode, final String city, final String countryCode);
-
- /**
- * Updates name data in this Contact instance
- *
- * @param gender Gender (M, F, C)
- * @param surname Surname
- * @param familyName Family name
- * @param companyName Company name
- */
- public void updateNameData (final char gender, final String surname, final String familyName, final String companyName);
-
- /**
- * Updates other data in this Contact instance
- *
- * @param phoneNumber Phone number
- * @param cellNumber Cellphone number
- * @param faxNumber Fax number
- * @param email Email address
- * @param birthday Birthday
- * @param comment Comments
- */
- public void updateOtherData (final String phoneNumber, final String cellNumber, final String faxNumber, final String email, final String birthday, final String comment);
-}
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+package org.mxchange.addressbook.contact;
+
+import org.mxchange.jcore.FrameworkInterface;
+import org.mxchange.jcore.client.Client;
+
+/**
+ *
+ * @author Roland Haeder
+ */
+public interface Contact extends FrameworkInterface {
+
+ /**
+ * Some "getter" for translated gender of the contact
+ *
+ * @return Translated / human-readable gender
+ */
+ public String getTranslatedGender ();
+
+ /**
+ * Checks whether the contact is user's own data
+ *
+ * @return Own data?
+ */
+ public boolean isOwnContact ();
+
+ /**
+ * Gender of the contact
+ *
+ * @return the gender
+ */
+ public Gender getGender ();
+
+ /**
+ * Surname
+ *
+ * @return the surname
+ */
+ public String getSurname ();
+
+ /**
+ * Family name
+ *
+ * @return the familyName
+ */
+ public String getFamilyName ();
+
+ /**
+ * Companyname
+ *
+ * @return the companyName
+ */
+ public String getCompanyName ();
+
+ /**
+ * Street
+ *
+ * @return the street
+ */
+ public String getStreet ();
+
+ /**
+ * House number
+ *
+ * @return the houseNumber
+ */
+ public int getHouseNumber ();
+
+ /**
+ * ZIP code
+ *
+ * @return the zipCode
+ */
+ public long getZipCode ();
+
+ /**
+ * City
+ *
+ * @return the city
+ */
+ public String getCity ();
+
+ /**
+ * Country code
+ *
+ * @return the countryCode
+ */
+ public String getCountryCode ();
+
+ /**
+ * Email address
+ *
+ * @return the emailAddress
+ */
+ public String getEmailAddress ();
+
+ /**
+ * Phone number
+ *
+ * @return the phoneNumber
+ */
+ public String getPhoneNumber ();
+
+ /**
+ * Fax number
+ *
+ * @return the faxNumber
+ */
+ public String getFaxNumber ();
+
+ /**
+ * Cellphone number
+ *
+ * @return the cellphoneNumber
+ */
+ public String getCellphoneNumber ();
+
+ /**
+ * Birth day
+ *
+ * @return the birthday
+ */
+ public String getBirthday ();
+
+ /**
+ * Comments
+ *
+ * @return the comment
+ */
+ public String getComment ();
+
+ /**
+ * Checks if given boolean value is available and set to same value
+ *
+ * @param columnName Column name to check
+ * @param bool Boolean value
+ * @return Whether all conditions are met
+ */
+ public boolean isValueEqual (final String columnName, final boolean bool);
+
+ /**
+ * Shows the contact to the user
+ *
+ * @param client Client instance to call back
+ */
+ public void show (final Client client);
+
+ /**
+ * Updates address data in this Contact instance
+ *
+ * @param street Street
+ * @param zipCode ZIP code
+ * @param city City
+ * @param countryCode Country code
+ */
+ public void updateAddressData (final String street, final long zipCode, final String city, final String countryCode);
+
+ /**
+ * Updates name data in this Contact instance
+ *
+ * @param gender Gender (M, F, C)
+ * @param surname Surname
+ * @param familyName Family name
+ * @param companyName Company name
+ */
+ public void updateNameData (final Gender gender, final String surname, final String familyName, final String companyName);
+
+ /**
+ * Updates other data in this Contact instance
+ *
+ * @param phoneNumber Phone number
+ * @param cellNumber Cellphone number
+ * @param faxNumber Fax number
+ * @param email Email address
+ * @param birthday Birthday
+ * @param comment Comments
+ */
+ public void updateOtherData (final String phoneNumber, final String cellNumber, final String faxNumber, final String email, final String birthday, final String comment);
+}