/** * Sets the billing information. * * @param billingInformation billing information or <code>null</code> to reset */ public void setBillingInformation(BillingInformation billingInformation) { if (billingInformation == null) { removeExtension(BillingInformation.class); } else { setExtension(billingInformation); } }
/** * Returns the events. * * @return events */ public List<Event> getEvents() { return getRepeatingExtension(Event.class); }
/** * Returns whether it has the birthday. * * @return whether it has the birthday */ public boolean hasBirthday() { return hasExtension(Birthday.class); }
/** * Declare the extensions of the feeds for the Google Contacts service. */ private void declareExtensions() { new ContactFeed().declareExtensions(extProfile); new ContactGroupFeed().declareExtensions(extProfile); new ProfileFeed().declareExtensions(extProfile); BatchUtils.declareExtensions(extProfile); }
/** * Returns whether it has the email addresses. * * @return whether it has the email addresses */ public boolean hasEmailAddresses() { return hasRepeatingExtension(Email.class); }
/** * Returns the nickname. * * @return nickname */ public Nickname getNickname() { return getExtension(Nickname.class); }
/** * Declare the extensions of the feeds for the Google Contacts service. */ private void declareExtensions() { new ContactFeed().declareExtensions(extProfile); new ContactGroupFeed().declareExtensions(extProfile); new ProfileFeed().declareExtensions(extProfile); BatchUtils.declareExtensions(extProfile); }
/** * Sets the directory server. * * @param directoryServer directory server or <code>null</code> to reset */ public void setDirectoryServer(DirectoryServer directoryServer) { if (directoryServer == null) { removeExtension(DirectoryServer.class); } else { setExtension(directoryServer); } }
/** * Returns the jots. * * @return jots */ public List<Jot> getJots() { return getRepeatingExtension(Jot.class); }
/** * Returns whether it has the initials. * * @return whether it has the initials */ public boolean hasInitials() { return hasExtension(Initials.class); }
/** * Returns whether it has the events. * * @return whether it has the events */ public boolean hasEvents() { return hasRepeatingExtension(Event.class); }
/** * Sets the gender. * * @param gender gender or <code>null</code> to reset */ public void setGender(Gender gender) { if (gender == null) { removeExtension(Gender.class); } else { setExtension(gender); } }
/** * Returns the relations. * * @return relations */ public List<Relation> getRelations() { return getRepeatingExtension(Relation.class); }
/** * Returns whether it has the subject. * * @return whether it has the subject */ public boolean hasSubject() { return hasExtension(Subject.class); }
/** * Returns whether it has the postal addresses. * * @return whether it has the postal addresses */ public boolean hasPostalAddresses() { return hasRepeatingExtension(PostalAddress.class); }
/** * Sets the maiden name. * * @param maidenName maiden name or <code>null</code> to reset */ public void setMaidenName(MaidenName maidenName) { if (maidenName == null) { removeExtension(MaidenName.class); } else { setExtension(maidenName); } }
/** * Returns the user defined fields. * * @return user defined fields */ public List<UserDefinedField> getUserDefinedFields() { return getRepeatingExtension(UserDefinedField.class); }
/** * Sets the priority. * * @param priority priority or <code>null</code> to reset */ public void setPriority(Priority priority) { if (priority == null) { removeExtension(Priority.class); } else { setExtension(priority); } }
/** * Sets the subject. * * @param subject subject or <code>null</code> to reset */ public void setSubject(Subject subject) { if (subject == null) { removeExtension(Subject.class); } else { setExtension(subject); } }
/** * Sets the person location. * * @param where person location or <code>null</code> to reset */ public void setWhere(Where where) { if (where == null) { removeExtension(Where.class); } else { setExtension(where); } }