public class

GroupMembershipInfo

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.contacts.GroupMembershipInfo

Class Overview

Denotes contact's group membership.

Summary

Constants
String DELETED XML "deleted" attribute name
String HREF XML "href" attribute name
String XML_NAME XML element name
Fields
private Boolean deleted Whether the contact was removed from the group
private String href URI of the group
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
GroupMembershipInfo()
Default mutable constructor.
GroupMembershipInfo(Boolean deleted, String href)
Immutable constructor.
Public Methods
boolean equals(Object obj)
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
Boolean getDeleted()
Returns the whether the contact was removed from the group.
String getHref()
Returns the URI of the group.
boolean hasDeleted()
Returns whether it has the whether the contact was removed from the group.
boolean hasHref()
Returns whether it has the URI of the group.
int hashCode()
void setDeleted(Boolean deleted)
Sets the whether the contact was removed from the group.
void setHref(String href)
Sets the URI of the group.
String toString()
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
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

Constants

private static final String DELETED

XML "deleted" attribute name

Constant Value: "deleted"

private static final String HREF

XML "href" attribute name

Constant Value: "href"

static final String XML_NAME

XML element name

Constant Value: "groupMembershipInfo"

Fields

private Boolean deleted

Whether the contact was removed from the group

private String href

URI of the group

Public Constructors

public GroupMembershipInfo ()

Default mutable constructor.

public GroupMembershipInfo (Boolean deleted, String href)

Immutable constructor.

Parameters
deleted Whether the contact was removed from the group.
href URI of the group.

Public Methods

public boolean equals (Object obj)

Parameters
obj

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

public Boolean getDeleted ()

Returns the whether the contact was removed from the group.

Returns
  • whether the contact was removed from the group

public String getHref ()

Returns the URI of the group.

Returns
  • URI of the group

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

public boolean hasHref ()

Returns whether it has the URI of the group.

Returns
  • whether it has the URI of the group

public int hashCode ()

public void setDeleted (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

public void setHref (String href)

Sets the URI of the group.

Parameters
href URI of the group or null to reset

public String toString ()

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator

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.