+\r
+ /**\r
+ * Updates address data in this Contact instance\r
+ *\r
+ * @param street Street\r
+ * @param zipCode ZIP code\r
+ * @param city City\r
+ * @param countryCode Country code\r
+ */\r
+ public void updateAddressData (final String street, final long zipCode, final String city, final String countryCode) {\r
+ // Set all\r
+ if (street != null) {\r
+ this.setStreet(street);\r
+ }\r
+ if (zipCode > 0) {\r
+ this.setZipCode(zipCode);\r
+ }\r
+ if (city != null) {\r
+ this.setCity(city);\r
+ }\r
+ if (countryCode != null) {\r
+ this.setCountryCode(countryCode);\r
+ }\r
+ }\r
+\r
+ /**\r
+ * Updates name data in this Contact instance\r
+ * @param gender Gender (M, F, C)\r
+ * @param surname Surname\r
+ * @param familyName Family name\r
+ * @param companyName Company name\r
+ */\r
+ public void updateNameData (final char gender, final String surname, final String familyName, final String companyName) {\r
+ // Set all\r
+ this.setGender(gender);\r
+ if (surname != null) {\r
+ this.setSurname(surname);\r
+ }\r
+ if (familyName != null) {\r
+ this.setFamilyName(familyName);\r
+ }\r
+ if (companyName != null) {\r
+ this.setCompanyName(companyName);\r
+ }\r
+ }\r
+\r
+ /**\r
+ * Updates other data in this Contact instance\r
+ * \r
+ * @param phoneNumber Phone number\r
+ * @param cellphoneNumber Cellphone number\r
+ * @param faxNumber Fax number\r
+ * @param emailAddress Email address\r
+ * @param birthday Birth day\r
+ * @param comment Comments\r
+ */\r
+ public void updateOtherData (final String phoneNumber, final String cellphoneNumber, final String faxNumber, final String emailAddress, final String birthday, final String comment) {\r
+ // Set all\r
+ if (phoneNumber != null) {\r
+ this.setPhoneNumber(phoneNumber);\r
+ }\r
+ if (cellphoneNumber != null) {\r
+ this.setCellphoneNumber(cellphoneNumber);\r
+ }\r
+ if (faxNumber != null) {\r
+ this.setFaxNumber(faxNumber);\r
+ }\r
+ if (emailAddress != null) {\r
+ this.setEmailAddress(emailAddress);\r
+ }\r
+ if (birthday != null) {\r
+ this.setBirthday(birthday);\r
+ }\r
+ if (comment != null) {\r
+ this.setComment(comment);\r
+ }\r
+ }\r
+\r
+ /**\r
+ * Enables the flag "own data" which signals that this contact is the user's\r
+ * own data.\r
+ */\r
+ protected void enableFlagOwnContact () {\r
+ this.ownContact = true;\r
+ }\r