public class

Birthday

extends ValueConstruct
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ValueConstruct
       ↳ com.google.gdata.data.contacts.Birthday

Class Overview

Contact's birth date.

Summary

Constants
String WHEN XML "when" attribute name
String XML_NAME XML element name
[Expand]
Inherited Fields
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
Public Constructors
Birthday()
Default mutable constructor.
Birthday(String when)
Constructor (mutable or immutable).
Public Methods
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
String getWhen()
Returns the birth date.
boolean hasWhen()
Returns whether it has the birth date.
void setWhen(String when)
Sets the birth date.
String toString()
[Expand]
Inherited Methods
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

private static final String WHEN

XML "when" attribute name

Constant Value: "when"

static final String XML_NAME

XML element name

Constant Value: "birthday"

Public Constructors

public Birthday ()

Default mutable constructor.

public Birthday (String when)

Constructor (mutable or immutable).

Parameters
when Immutable birth date or null for a mutable birth date

Public Methods

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 String getWhen ()

Returns the birth date.

Returns
  • birth date

public boolean hasWhen ()

Returns whether it has the birth date.

Returns
  • whether it has the birth date

public void setWhen (String when)

Sets the birth date.

Parameters
when Birth date or null to reset

public String toString ()