com.google.gdata.data.contacts
Class GroupMembershipInfo

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ExtensionPoint
          extended by com.google.gdata.data.contacts.GroupMembershipInfo
All Implemented Interfaces:
Extension

public class GroupMembershipInfo
extends ExtensionPoint

Denotes contact's group membership.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
 
Constructor Summary
GroupMembershipInfo()
          Default mutable constructor.
GroupMembershipInfo(java.lang.Boolean deleted, java.lang.String href)
          Immutable constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
          Returns the extension description, specifying whether it is required, and whether it is repeatable.
 java.lang.Boolean getDeleted()
          Returns the whether the contact was removed from the group.
 java.lang.String getHref()
          Returns the URI of the group.
 boolean hasDeleted()
          Returns whether it has the whether the contact was removed from the group.
 int hashCode()
           
 boolean hasHref()
          Returns whether it has the URI of the group.
 void setDeleted(java.lang.Boolean deleted)
          Sets the whether the contact was removed from the group.
 void setHref(java.lang.String href)
          Sets the URI of the group.
 java.lang.String toString()
           
 
Methods inherited from class com.google.gdata.data.ExtensionPoint
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getHandler, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
 
Methods inherited from class com.google.gdata.data.AbstractExtension
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupMembershipInfo

public GroupMembershipInfo()
Default mutable constructor.


GroupMembershipInfo

public GroupMembershipInfo(java.lang.Boolean deleted,
                           java.lang.String href)
Immutable constructor.

Parameters:
deleted - whether the contact was removed from the group.
href - URI of the group.
Method Detail

getDeleted

public java.lang.Boolean getDeleted()
Returns the whether the contact was removed from the group.

Returns:
whether the contact was removed from the group

setDeleted

public void setDeleted(java.lang.Boolean deleted)
Sets the whether the contact was removed from the group.

Parameters:
deleted - whether the contact was removed from the group or null to reset

hasDeleted

public boolean hasDeleted()
Returns whether it has the whether the contact was removed from the group.

Returns:
whether it has the whether the contact was removed from the group

getHref

public java.lang.String getHref()
Returns the URI of the group.

Returns:
URI of the group

setHref

public void setHref(java.lang.String href)
Sets the URI of the group.

Parameters:
href - URI of the group or null to reset

hasHref

public boolean hasHref()
Returns whether it has the URI of the group.

Returns:
whether it has the URI of the group

getDefaultDescription

public static ExtensionDescription getDefaultDescription(boolean required,
                                                         boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters:
required - whether it is required
repeatable - whether it is repeatable
Returns:
extension description

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object