public abstract class

BasePersonEntry

extends BaseEntry<E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.contacts.BasePersonEntry<E extends com.google.gdata.data.contacts.BasePersonEntry<E>>
Known Direct Subclasses

Class Overview

Describes a person entry.

Summary

[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
BasePersonEntry()
Default mutable constructor.
BasePersonEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void addCalendarLink(CalendarLink calendarLink)
Adds a new calendar link.
void addEmailAddress(Email emailAddress)
Adds a new contact email.
void addEvent(Event event)
Adds a new event.
void addExtendedProperty(ExtendedProperty extendedProperty)
Adds a new contact extended property.
void addExternalId(ExternalId externalId)
Adds a new external id.
void addHobby(Hobby hobby)
Adds a new hobby.
void addImAddress(Im imAddress)
Adds a new contact im.
void addJot(Jot jot)
Adds a new jot.
void addLanguage(Language language)
Adds a new language.
void addOrganization(Organization organization)
Adds a new contact organization.
void addPhoneNumber(PhoneNumber phoneNumber)
Adds a new contact phone number.
void addPostalAddress(PostalAddress postalAddress)
Adds a new contact postal address.
void addRelation(Relation relation)
Adds a new relation.
void addStructuredPostalAddress(StructuredPostalAddress structuredPostalAddress)
Adds a new contact structured address.
void addUserDefinedField(UserDefinedField userDefinedField)
Adds a new user defined field.
void addWebsite(Website website)
Adds a new website.
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
BatchId getBatchId()
Returns the batch identifier.
BatchInterrupted getBatchInterrupted()
Returns the batch interruption information.
BatchOperation getBatchOperation()
Returns the batch operation.
BatchStatus getBatchStatus()
Returns the batch response status information.
BillingInformation getBillingInformation()
Returns the billing information.
Birthday getBirthday()
Returns the birthday.
List<CalendarLink> getCalendarLinks()
Returns the calendar links.
Link getContactEditPhotoLink()
Returns the link to edit contact photo.
Link getContactPhotoLink()
Returns the link that provides the contact photo.
DirectoryServer getDirectoryServer()
Returns the directory server.
List<Email> getEmailAddresses()
Returns the contact emails.
List<Event> getEvents()
Returns the events.
List<ExtendedProperty> getExtendedProperties()
Returns the contact extended properties.
List<ExternalId> getExternalIds()
Returns the external ids.
FileAs getFileAs()
Returns the person file as.
Gender getGender()
Returns the gender.
List<Hobby> getHobbies()
Returns the hobbies.
List<Im> getImAddresses()
Returns the contact ims.
Initials getInitials()
Returns the initials.
List<Jot> getJots()
Returns the jots.
List<Language> getLanguages()
Returns the languages.
MaidenName getMaidenName()
Returns the maiden name.
Mileage getMileage()
Returns the mileage.
Name getName()
Returns the contact name.
Nickname getNickname()
Returns the nickname.
Occupation getOccupation()
Returns the occupation.
List<Organization> getOrganizations()
Returns the contact organizations.
List<PhoneNumber> getPhoneNumbers()
Returns the contact phone numbers.
List<PostalAddress> getPostalAddresses()
Returns the contact postal addresses.
Priority getPriority()
Returns the priority.
List<Relation> getRelations()
Returns the relations.
Sensitivity getSensitivity()
Returns the sensitivity.
ShortName getShortName()
Returns the short name.
Status getStatus()
Returns the status.
List<StructuredPostalAddress> getStructuredPostalAddresses()
Returns the contact structured addresses.
Subject getSubject()
Returns the subject.
List<UserDefinedField> getUserDefinedFields()
Returns the user defined fields.
List<Website> getWebsites()
Returns the websites.
Where getWhere()
Returns the person location.
boolean hasBatchId()
Returns whether it has the batch identifier.
boolean hasBatchInterrupted()
Returns whether it has the batch interruption information.
boolean hasBatchOperation()
Returns whether it has the batch operation.
boolean hasBatchStatus()
Returns whether it has the batch response status information.
boolean hasBillingInformation()
Returns whether it has the billing information.
boolean hasBirthday()
Returns whether it has the birthday.
boolean hasCalendarLinks()
Returns whether it has the calendar links.
boolean hasDirectoryServer()
Returns whether it has the directory server.
boolean hasEmailAddresses()
Returns whether it has the contact emails.
boolean hasEvents()
Returns whether it has the events.
boolean hasExtendedProperties()
Returns whether it has the contact extended properties.
boolean hasExternalIds()
Returns whether it has the external ids.
boolean hasFileAs()
Returns whether it has the person file as.
boolean hasGender()
Returns whether it has the gender.
boolean hasHobbies()
Returns whether it has the hobbies.
boolean hasImAddresses()
Returns whether it has the contact ims.
boolean hasInitials()
Returns whether it has the initials.
boolean hasJots()
Returns whether it has the jots.
boolean hasLanguages()
Returns whether it has the languages.
boolean hasMaidenName()
Returns whether it has the maiden name.
boolean hasMileage()
Returns whether it has the mileage.
boolean hasName()
Returns whether it has the contact name.
boolean hasNickname()
Returns whether it has the nickname.
boolean hasOccupation()
Returns whether it has the occupation.
boolean hasOrganizations()
Returns whether it has the contact organizations.
boolean hasPhoneNumbers()
Returns whether it has the contact phone numbers.
boolean hasPostalAddresses()
Returns whether it has the contact postal addresses.
boolean hasPriority()
Returns whether it has the priority.
boolean hasRelations()
Returns whether it has the relations.
boolean hasSensitivity()
Returns whether it has the sensitivity.
boolean hasShortName()
Returns whether it has the short name.
boolean hasStatus()
Returns whether it has the status.
boolean hasStructuredPostalAddresses()
Returns whether it has the contact structured addresses.
boolean hasSubject()
Returns whether it has the subject.
boolean hasUserDefinedFields()
Returns whether it has the user defined fields.
boolean hasWebsites()
Returns whether it has the websites.
boolean hasWhere()
Returns whether it has the person location.
void setBatchId(BatchId batchId)
Sets the batch identifier.
void setBatchInterrupted(BatchInterrupted batchInterrupted)
Sets the batch interruption information.
void setBatchOperation(BatchOperation batchOperation)
Sets the batch operation.
void setBatchStatus(BatchStatus batchStatus)
Sets the batch response status information.
void setBillingInformation(BillingInformation billingInformation)
Sets the billing information.
void setBirthday(Birthday birthday)
Sets the birthday.
void setDirectoryServer(DirectoryServer directoryServer)
Sets the directory server.
void setEmailAddresses(List<Email> emails)
void setFileAs(FileAs fileAs)
Sets the person file as.
void setGender(Gender gender)
Sets the gender.
void setHobbies(List<Hobby> hobbies)
void setInitials(Initials initials)
Sets the initials.
void setMaidenName(MaidenName maidenName)
Sets the maiden name.
void setMileage(Mileage mileage)
Sets the mileage.
void setName(Name name)
Sets the contact name.
void setNickname(Nickname nickname)
Sets the nickname.
void setOccupation(Occupation occupation)
Sets the occupation.
void setOrganizations(List<Organization> organizations)
void setPhoneNumbers(List<PhoneNumber> numbers)
void setPostalAddresses(List<PostalAddress> addresses)
void setPriority(Priority priority)
Sets the priority.
void setSensitivity(Sensitivity sensitivity)
Sets the sensitivity.
void setShortName(ShortName shortName)
Sets the short name.
void setStatus(Status status)
Sets the status.
void setSubject(Subject subject)
Sets the subject.
void setWebsites(List<Website> websites)
void setWhere(Where where)
Sets the person location.
String toString()
Protected Methods
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Public Constructors

public BasePersonEntry ()

Default mutable constructor.

public BasePersonEntry (BaseEntry<?> sourceEntry)

Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.

Parameters
sourceEntry Source entry

Public Methods

public void addCalendarLink (CalendarLink calendarLink)

Adds a new calendar link.

Parameters
calendarLink Calendar link

public void addEmailAddress (Email emailAddress)

Adds a new contact email.

Parameters
emailAddress Contact email

public void addEvent (Event event)

Adds a new event.

Parameters
event Event

public void addExtendedProperty (ExtendedProperty extendedProperty)

Adds a new contact extended property.

Parameters
extendedProperty Contact extended property

public void addExternalId (ExternalId externalId)

Adds a new external id.

Parameters
externalId External id

public void addHobby (Hobby hobby)

Adds a new hobby.

Parameters
hobby Hobby

public void addImAddress (Im imAddress)

Adds a new contact im.

Parameters
imAddress Contact im

public void addJot (Jot jot)

Adds a new jot.

Parameters
jot Jot

public void addLanguage (Language language)

Adds a new language.

Parameters
language Language

public void addOrganization (Organization organization)

Adds a new contact organization.

Parameters
organization Contact organization

public void addPhoneNumber (PhoneNumber phoneNumber)

Adds a new contact phone number.

Parameters
phoneNumber Contact phone number

public void addPostalAddress (PostalAddress postalAddress)

Adds a new contact postal address.

Parameters
postalAddress Contact postal address

public void addRelation (Relation relation)

Adds a new relation.

Parameters
relation Relation

public void addStructuredPostalAddress (StructuredPostalAddress structuredPostalAddress)

Adds a new contact structured address.

Parameters
structuredPostalAddress Contact structured address

public void addUserDefinedField (UserDefinedField userDefinedField)

Adds a new user defined field.

Parameters
userDefinedField User defined field

public void addWebsite (Website website)

Adds a new website.

Parameters
website Website

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

public BatchId getBatchId ()

Returns the batch identifier.

Returns
  • batch identifier

public BatchInterrupted getBatchInterrupted ()

Returns the batch interruption information.

Returns
  • batch interruption information

public BatchOperation getBatchOperation ()

Returns the batch operation.

Returns
  • batch operation

public BatchStatus getBatchStatus ()

Returns the batch response status information.

Returns
  • batch response status information

public BillingInformation getBillingInformation ()

Returns the billing information.

Returns
  • billing information

public Birthday getBirthday ()

Returns the birthday.

Returns
  • birthday

public List<CalendarLink> getCalendarLinks ()

Returns the calendar links.

Returns
  • calendar links

public Link getContactEditPhotoLink ()

Returns the link to edit contact photo.

Returns
  • Link to edit contact photo or null for none.

public Link getContactPhotoLink ()

Returns the link that provides the contact photo.

Returns
  • Link that provides the contact photo or null for none.

public DirectoryServer getDirectoryServer ()

Returns the directory server.

Returns
  • directory server

public List<Email> getEmailAddresses ()

Returns the contact emails.

Returns
  • contact emails

public List<Event> getEvents ()

Returns the events.

Returns
  • events

public List<ExtendedProperty> getExtendedProperties ()

Returns the contact extended properties.

Returns
  • contact extended properties

public List<ExternalId> getExternalIds ()

Returns the external ids.

Returns
  • external ids

public FileAs getFileAs ()

Returns the person file as.

Returns
  • person file as

public Gender getGender ()

Returns the gender.

Returns
  • gender

public List<Hobby> getHobbies ()

Returns the hobbies.

Returns
  • hobbies

public List<Im> getImAddresses ()

Returns the contact ims.

Returns
  • contact ims

public Initials getInitials ()

Returns the initials.

Returns
  • initials

public List<Jot> getJots ()

Returns the jots.

Returns
  • jots

public List<Language> getLanguages ()

Returns the languages.

Returns
  • languages

public MaidenName getMaidenName ()

Returns the maiden name.

Returns
  • maiden name

public Mileage getMileage ()

Returns the mileage.

Returns
  • mileage

public Name getName ()

Returns the contact name.

Returns
  • contact name

public Nickname getNickname ()

Returns the nickname.

Returns
  • nickname

public Occupation getOccupation ()

Returns the occupation.

Returns
  • occupation

public List<Organization> getOrganizations ()

Returns the contact organizations.

Returns
  • contact organizations

public List<PhoneNumber> getPhoneNumbers ()

Returns the contact phone numbers.

Returns
  • contact phone numbers

public List<PostalAddress> getPostalAddresses ()

Returns the contact postal addresses.

Returns
  • contact postal addresses

public Priority getPriority ()

Returns the priority.

Returns
  • priority

public List<Relation> getRelations ()

Returns the relations.

Returns
  • relations

public Sensitivity getSensitivity ()

Returns the sensitivity.

Returns
  • sensitivity

public ShortName getShortName ()

Returns the short name.

Returns
  • short name

public Status getStatus ()

Returns the status.

Returns
  • status

public List<StructuredPostalAddress> getStructuredPostalAddresses ()

Returns the contact structured addresses.

Returns
  • contact structured addresses

public Subject getSubject ()

Returns the subject.

Returns
  • subject

public List<UserDefinedField> getUserDefinedFields ()

Returns the user defined fields.

Returns
  • user defined fields

public List<Website> getWebsites ()

Returns the websites.

Returns
  • websites

public Where getWhere ()

Returns the person location.

Returns
  • person location

public boolean hasBatchId ()

Returns whether it has the batch identifier.

Returns
  • whether it has the batch identifier

public boolean hasBatchInterrupted ()

Returns whether it has the batch interruption information.

Returns
  • whether it has the batch interruption information

public boolean hasBatchOperation ()

Returns whether it has the batch operation.

Returns
  • whether it has the batch operation

public boolean hasBatchStatus ()

Returns whether it has the batch response status information.

Returns
  • whether it has the batch response status information

public boolean hasBillingInformation ()

Returns whether it has the billing information.

Returns
  • whether it has the billing information

public boolean hasBirthday ()

Returns whether it has the birthday.

Returns
  • whether it has the birthday

public boolean hasCalendarLinks ()

Returns whether it has the calendar links.

Returns
  • whether it has the calendar links

public boolean hasDirectoryServer ()

Returns whether it has the directory server.

Returns
  • whether it has the directory server

public boolean hasEmailAddresses ()

Returns whether it has the contact emails.

Returns
  • whether it has the contact emails

public boolean hasEvents ()

Returns whether it has the events.

Returns
  • whether it has the events

public boolean hasExtendedProperties ()

Returns whether it has the contact extended properties.

Returns
  • whether it has the contact extended properties

public boolean hasExternalIds ()

Returns whether it has the external ids.

Returns
  • whether it has the external ids

public boolean hasFileAs ()

Returns whether it has the person file as.

Returns
  • whether it has the person file as

public boolean hasGender ()

Returns whether it has the gender.

Returns
  • whether it has the gender

public boolean hasHobbies ()

Returns whether it has the hobbies.

Returns
  • whether it has the hobbies

public boolean hasImAddresses ()

Returns whether it has the contact ims.

Returns
  • whether it has the contact ims

public boolean hasInitials ()

Returns whether it has the initials.

Returns
  • whether it has the initials

public boolean hasJots ()

Returns whether it has the jots.

Returns
  • whether it has the jots

public boolean hasLanguages ()

Returns whether it has the languages.

Returns
  • whether it has the languages

public boolean hasMaidenName ()

Returns whether it has the maiden name.

Returns
  • whether it has the maiden name

public boolean hasMileage ()

Returns whether it has the mileage.

Returns
  • whether it has the mileage

public boolean hasName ()

Returns whether it has the contact name.

Returns
  • whether it has the contact name

public boolean hasNickname ()

Returns whether it has the nickname.

Returns
  • whether it has the nickname

public boolean hasOccupation ()

Returns whether it has the occupation.

Returns
  • whether it has the occupation

public boolean hasOrganizations ()

Returns whether it has the contact organizations.

Returns
  • whether it has the contact organizations

public boolean hasPhoneNumbers ()

Returns whether it has the contact phone numbers.

Returns
  • whether it has the contact phone numbers

public boolean hasPostalAddresses ()

Returns whether it has the contact postal addresses.

Returns
  • whether it has the contact postal addresses

public boolean hasPriority ()

Returns whether it has the priority.

Returns
  • whether it has the priority

public boolean hasRelations ()

Returns whether it has the relations.

Returns
  • whether it has the relations

public boolean hasSensitivity ()

Returns whether it has the sensitivity.

Returns
  • whether it has the sensitivity

public boolean hasShortName ()

Returns whether it has the short name.

Returns
  • whether it has the short name

public boolean hasStatus ()

Returns whether it has the status.

Returns
  • whether it has the status

public boolean hasStructuredPostalAddresses ()

Returns whether it has the contact structured addresses.

Returns
  • whether it has the contact structured addresses

public boolean hasSubject ()

Returns whether it has the subject.

Returns
  • whether it has the subject

public boolean hasUserDefinedFields ()

Returns whether it has the user defined fields.

Returns
  • whether it has the user defined fields

public boolean hasWebsites ()

Returns whether it has the websites.

Returns
  • whether it has the websites

public boolean hasWhere ()

Returns whether it has the person location.

Returns
  • whether it has the person location

public void setBatchId (BatchId batchId)

Sets the batch identifier.

Parameters
batchId Batch identifier or null to reset

public void setBatchInterrupted (BatchInterrupted batchInterrupted)

Sets the batch interruption information.

Parameters
batchInterrupted Batch interruption information or null to reset

public void setBatchOperation (BatchOperation batchOperation)

Sets the batch operation.

Parameters
batchOperation Batch operation or null to reset

public void setBatchStatus (BatchStatus batchStatus)

Sets the batch response status information.

Parameters
batchStatus Batch response status information or null to reset

public void setBillingInformation (BillingInformation billingInformation)

Sets the billing information.

Parameters
billingInformation Billing information or null to reset

public void setBirthday (Birthday birthday)

Sets the birthday.

Parameters
birthday Birthday or null to reset

public void setDirectoryServer (DirectoryServer directoryServer)

Sets the directory server.

Parameters
directoryServer Directory server or null to reset

public void setEmailAddresses (List<Email> emails)

Parameters
emails

public void setFileAs (FileAs fileAs)

Sets the person file as.

Parameters
fileAs Person file as or null to reset

public void setGender (Gender gender)

Sets the gender.

Parameters
gender Gender or null to reset

public void setHobbies (List<Hobby> hobbies)

Parameters
hobbies

public void setInitials (Initials initials)

Sets the initials.

Parameters
initials Initials or null to reset

public void setMaidenName (MaidenName maidenName)

Sets the maiden name.

Parameters
maidenName Maiden name or null to reset

public void setMileage (Mileage mileage)

Sets the mileage.

Parameters
mileage Mileage or null to reset

public void setName (Name name)

Sets the contact name.

Parameters
name Contact name or null to reset

public void setNickname (Nickname nickname)

Sets the nickname.

Parameters
nickname Nickname or null to reset

public void setOccupation (Occupation occupation)

Sets the occupation.

Parameters
occupation Occupation or null to reset

public void setOrganizations (List<Organization> organizations)

Parameters
organizations

public void setPhoneNumbers (List<PhoneNumber> numbers)

Parameters
numbers

public void setPostalAddresses (List<PostalAddress> addresses)

Parameters
addresses

public void setPriority (Priority priority)

Sets the priority.

Parameters
priority Priority or null to reset

public void setSensitivity (Sensitivity sensitivity)

Sets the sensitivity.

Parameters
sensitivity Sensitivity or null to reset

public void setShortName (ShortName shortName)

Sets the short name.

Parameters
shortName Short name or null to reset

public void setStatus (Status status)

Sets the status.

Parameters
status Status or null to reset

public void setSubject (Subject subject)

Sets the subject.

Parameters
subject Subject or null to reset

public void setWebsites (List<Website> websites)

Parameters
websites

public void setWhere (Where where)

Sets the person location.

Parameters
where Person location or null to reset

public String toString ()

Protected Methods

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.