public class

Status

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

Class Overview

Person status element.

Summary

Constants
String INDEXED XML "indexed" attribute name
String XML_NAME XML element name
Fields
private Boolean indexed Whether this person is in the global address list
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
Status()
Default mutable constructor.
Status(Boolean indexed)
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 getIndexed()
Returns the whether this person is in the global address list.
boolean hasIndexed()
Returns whether it has the whether this person is in the global address list.
int hashCode()
void setIndexed(Boolean indexed)
Sets the whether this person is in the global address list.
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 INDEXED

XML "indexed" attribute name

Constant Value: "indexed"

static final String XML_NAME

XML element name

Constant Value: "status"

Fields

private Boolean indexed

Whether this person is in the global address list

Public Constructors

public Status ()

Default mutable constructor.

public Status (Boolean indexed)

Immutable constructor.

Parameters
indexed Whether this person is in the global address list.

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 getIndexed ()

Returns the whether this person is in the global address list.

Returns
  • whether this person is in the global address list

public boolean hasIndexed ()

Returns whether it has the whether this person is in the global address list.

Returns
  • whether it has the whether this person is in the global address list

public int hashCode ()

public void setIndexed (Boolean indexed)

Sets the whether this person is in the global address list.

Parameters
indexed Whether this person is in the global address list 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.