com.google.gdata.data.contacts
Class Birthday
java.lang.Object
com.google.gdata.data.AbstractExtension
com.google.gdata.data.ValueConstruct
com.google.gdata.data.contacts.Birthday
- All Implemented Interfaces:
- Extension
public class Birthday
- extends ValueConstruct
Contact's birth date.
Constructor Summary |
Birthday()
Default mutable constructor. |
Birthday(java.lang.String when)
Constructor (mutable or immutable). |
Method Summary |
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable. |
java.lang.String |
getWhen()
Returns the birth date. |
boolean |
hasWhen()
Returns whether it has the birth date. |
void |
setWhen(java.lang.String when)
Sets the birth date. |
java.lang.String |
toString()
|
Methods inherited from class com.google.gdata.data.ValueConstruct |
consumeAttributes, equals, generate, getHandler, getValue, hashCode, hasValue, isRequired, putAttributes, setRequired, setValue |
Methods inherited from class com.google.gdata.data.AbstractExtension |
disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Birthday
public Birthday()
- Default mutable constructor.
Birthday
public Birthday(java.lang.String when)
- Constructor (mutable or immutable).
- Parameters:
when
- immutable birth date or null
for a mutable birth
date
getWhen
public java.lang.String getWhen()
- Returns the birth date.
- Returns:
- birth date
setWhen
public void setWhen(java.lang.String when)
- Sets the birth date.
- Parameters:
when
- birth date or null
to reset
hasWhen
public boolean hasWhen()
- Returns whether it has the birth date.
- Returns:
- whether it has the birth date
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 requiredrepeatable
- whether it is repeatable
- Returns:
- extension description
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object