/** * Returns the occupation. * * @return occupation */ public Occupation getOccupation() { return getExtension(Occupation.class); }
/** * Adds a new calendar link. * * @param calendarLink calendar link */ public void addCalendarLink(CalendarLink calendarLink) { getCalendarLinks().add(calendarLink); }
/** * Adds a new external id. * * @param externalId external id */ public void addExternalId(ExternalId externalId) { getExternalIds().add(externalId); }
/** * Adds a new event. * * @param event event */ public void addEvent(Event event) { getEvents().add(event); }
/** * Adds a new hobby. * * @param hobby hobby */ public void addHobby(Hobby hobby) { getHobbies().add(hobby); }
/** * Adds a new contact im. * * @param imAddress contact im */ public void addImAddress(Im imAddress) { getImAddresses().add(imAddress); }
/** * Adds a new jot. * * @param jot jot */ public void addJot(Jot jot) { getJots().add(jot); }
/** * Adds a new email address. * * @param emailAddress email address */ public void addEmailAddress(Email emailAddress) { getEmailAddresses().add(emailAddress); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(ContactEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(ContactEntry.class, new ExtensionDescription(Deleted.class, new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "deleted", false, false, false)); extProfile.declare(ContactEntry.class, GroupMembershipInfo.getDefaultDescription(false, true)); }
/** * Adds a new contact extended property. * * @param extendedProperty contact extended property */ public void addExtendedProperty(ExtendedProperty extendedProperty) { getExtendedProperties().add(extendedProperty); }
/** * Adds a new calendar link. * * @param calendarLink calendar link */ public void addCalendarLink(CalendarLink calendarLink) { getCalendarLinks().add(calendarLink); }
/** * Adds a new external id. * * @param externalId external id */ public void addExternalId(ExternalId externalId) { getExternalIds().add(externalId); }
/** * Adds a new event. * * @param event event */ public void addEvent(Event event) { getEvents().add(event); }
/** * Adds a new hobby. * * @param hobby hobby */ public void addHobby(Hobby hobby) { getHobbies().add(hobby); }
/** * Adds a new instant messaging address. * * @param imAddress instant messaging address */ public void addImAddress(Im imAddress) { getImAddresses().add(imAddress); }
/** * Adds a new jot. * * @param jot jot */ public void addJot(Jot jot) { getJots().add(jot); }
/** * Adds a new email address. * * @param emailAddress email address */ public void addEmailAddress(Email emailAddress) { getEmailAddresses().add(emailAddress); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(ContactEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(ContactEntry.class, new ExtensionDescription(Deleted.class, new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "deleted", false, false, false)); extProfile.declare(ContactEntry.class, GroupMembershipInfo.getDefaultDescription(false, true)); }
/** * Adds a new extended property. * * @param extendedProperty extended property */ public void addExtendedProperty(ExtendedProperty extendedProperty) { getExtendedProperties().add(extendedProperty); }
/** * Returns the batch identifier. * * @return batch identifier */ public BatchId getBatchId() { return getExtension(BatchId.class); }