public class

ContactEntry

extends BasePersonEntry<E extends BasePersonEntry<E>>
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>>
           ↳ com.google.gdata.data.contacts.ContactEntry

Class Overview

Describes a contact entry.

Summary

Constants
String KIND Contact kind term value.
Fields
public static final Category CATEGORY Contact kind category.
[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
ContactEntry()
Default mutable constructor.
ContactEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void addGroupMembershipInfo(GroupMembershipInfo groupMembershipInfo)
Adds a new group membership info.
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
Deleted getDeleted()
Returns the marker for deleted entries.
List<GroupMembershipInfo> getGroupMembershipInfos()
Returns the group membership infos.
YomiName getYomiName()
Returns the yomi name.
boolean hasDeleted()
Returns whether it has the marker for deleted entries.
boolean hasGroupMembershipInfos()
Returns whether it has the group membership infos.
boolean hasYomiName()
Returns whether it has the yomi name.
void setDeleted(Deleted deleted)
Sets the marker for deleted entries.
void setYomiName(YomiName yomiName)
Sets the yomi name.
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.contacts.BasePersonEntry
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

Constants

public static final String KIND

Contact kind term value.

Constant Value: "http://schemas.google.com/contact/2008#contact"

Fields

public static final Category CATEGORY

Contact kind category.

Public Constructors

public ContactEntry ()

Default mutable constructor.

public ContactEntry (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 addGroupMembershipInfo (GroupMembershipInfo groupMembershipInfo)

Adds a new group membership info.

Parameters
groupMembershipInfo Group membership info

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 Deleted getDeleted ()

Returns the marker for deleted entries.

Returns
  • marker for deleted entries

public List<GroupMembershipInfo> getGroupMembershipInfos ()

Returns the group membership infos.

Returns
  • group membership infos

public YomiName getYomiName ()

Returns the yomi name.

Returns
  • yomi name

public boolean hasDeleted ()

Returns whether it has the marker for deleted entries.

Returns
  • whether it has the marker for deleted entries

public boolean hasGroupMembershipInfos ()

Returns whether it has the group membership infos.

Returns
  • whether it has the group membership infos

public boolean hasYomiName ()

Returns whether it has the yomi name.

Returns
  • whether it has the yomi name

public void setDeleted (Deleted deleted)

Sets the marker for deleted entries.

Parameters
deleted Marker for deleted entries or null to reset

public void setYomiName (YomiName yomiName)

Sets the yomi name.

Parameters
yomiName Yomi name 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.