Calendar API v3 (revision 41)



com.google.api.services.calendar.model
Class EventDateTime

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.calendar.model.EventDateTime
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class EventDateTime
extends GenericJson

Model definition for EventDateTime.

This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Calendar API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
EventDateTime()
           
 
Method Summary
 EventDateTime clone()
           
 DateTime getDate()
          The date, in the format "yyyy-mm-dd", if this is an all-day event.
 DateTime getDateTime()
          The time, as a combined date-time value (formatted according to RFC 3339).
 String getTimeZone()
          The name of the time zone in which the time is specified (e.g.
 EventDateTime set(String fieldName, Object value)
           
 EventDateTime setDate(DateTime date)
          The date, in the format "yyyy-mm-dd", if this is an all-day event.
 EventDateTime setDateTime(DateTime dateTime)
          The time, as a combined date-time value (formatted according to RFC 3339).
 EventDateTime setTimeZone(String timeZone)
          The name of the time zone in which the time is specified (e.g.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventDateTime

public EventDateTime()
Method Detail

getDate

public DateTime getDate()
The date, in the format "yyyy-mm-dd", if this is an all-day event.

Returns:
value or null for none

setDate

public EventDateTime setDate(DateTime date)
The date, in the format "yyyy-mm-dd", if this is an all-day event.

Parameters:
date - date or null for none

getDateTime

public DateTime getDateTime()
The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.

Returns:
value or null for none

setDateTime

public EventDateTime setDateTime(DateTime dateTime)
The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.

Parameters:
dateTime - dateTime or null for none

getTimeZone

public String getTimeZone()
The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.

Returns:
value or null for none

setTimeZone

public EventDateTime setTimeZone(String timeZone)
The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.

Parameters:
timeZone - timeZone or null for none

set

public EventDateTime set(String fieldName,
                         Object value)
Overrides:
set in class GenericJson

clone

public EventDateTime clone()
Overrides:
clone in class GenericJson