|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.model.Element
com.google.gdata.model.gd.When
public class When
Describes a period of time.
Field Summary | |
---|---|
static AttributeKey<DateTime> |
END_TIME
Event end time. |
static ElementKey<java.lang.Void,When> |
KEY
The key for this element. |
static AttributeKey<DateTime> |
START_TIME
Event start time. |
static AttributeKey<java.lang.String> |
VALUE_STRING
String description of the event times. |
Constructor Summary | |
---|---|
When()
Constructs an instance using the default key. |
Method Summary | |
---|---|
When |
addReminder(Reminder reminder)
Adds a new event reminder. |
void |
clearReminder()
Removes all existing event reminder instances. |
DateTime |
getEndTime()
Returns the event end time. |
java.util.List<Reminder> |
getReminder()
Returns the event reminders. |
DateTime |
getStartTime()
Returns the event start time. |
java.lang.String |
getValueString()
Returns the string description of the event times. |
boolean |
hasEndTime()
Returns whether it has the event end time. |
boolean |
hasReminder()
Returns whether it has the event reminders. |
boolean |
hasStartTime()
Returns whether it has the event start time. |
boolean |
hasValueString()
Returns whether it has the string description of the event times. |
When |
lock()
Locks this element. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
boolean |
removeReminder(Reminder reminder)
Removes an existing event reminder. |
When |
setEndTime(DateTime endTime)
Sets the event end time. |
When |
setStartTime(DateTime startTime)
Sets the event start time. |
When |
setValueString(java.lang.String valueString)
Sets the string description of the event times. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ElementKey<java.lang.Void,When> KEY
public static final AttributeKey<DateTime> END_TIME
public static final AttributeKey<DateTime> START_TIME
public static final AttributeKey<java.lang.String> VALUE_STRING
Constructor Detail |
---|
public When()
Method Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public When lock()
Element
lock
in class Element
public DateTime getEndTime()
public When setEndTime(DateTime endTime)
endTime
- event end time or null
to reset
public boolean hasEndTime()
public java.util.List<Reminder> getReminder()
public When addReminder(Reminder reminder)
reminder
- event reminderpublic boolean removeReminder(Reminder reminder)
reminder
- event reminder
public void clearReminder()
public boolean hasReminder()
public DateTime getStartTime()
public When setStartTime(DateTime startTime)
startTime
- event start time or null
to reset
public boolean hasStartTime()
public java.lang.String getValueString()
public When setValueString(java.lang.String valueString)
valueString
- string description of the event times or null
to
reset
public boolean hasValueString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |