com.google.gdata.model.gd
Class OriginalEvent

java.lang.Object
  extended by com.google.gdata.model.Element
      extended by com.google.gdata.model.gd.OriginalEvent

public class OriginalEvent
extends Element

Describes a link to a recurring event.


Field Summary
static AttributeKey<java.lang.String> HREF
          URL of the original recurring event entry.
static ElementKey<java.lang.Void,OriginalEvent> KEY
          The key for this element.
static AttributeKey<java.lang.String> ORIGINAL_ID
          Event ID of the original recurring event entry.
 
Constructor Summary
OriginalEvent()
          Constructs an instance using the default key.
 
Method Summary
 java.lang.String getHref()
          Returns the URL of the original recurring event entry.
 java.lang.String getOriginalId()
          Returns the event ID of the original recurring event entry.
 When getOriginalStartTime()
          Returns the original start time.
 boolean hasHref()
          Returns whether it has the URL of the original recurring event entry.
 boolean hasOriginalId()
          Returns whether it has the event ID of the original recurring event entry.
 boolean hasOriginalStartTime()
          Returns whether it has the original start time.
 OriginalEvent lock()
          Locks this element.
static void registerMetadata(MetadataRegistry registry)
          Registers the metadata for this element.
 OriginalEvent setHref(java.lang.String href)
          Sets the URL of the original recurring event entry.
 OriginalEvent setOriginalId(java.lang.String originalId)
          Sets the event ID of the original recurring event entry.
 OriginalEvent setOriginalStartTime(When originalStartTime)
          Sets the original start time.
 
Methods inherited from class com.google.gdata.model.Element
addElement, addElement, addElement, clear, createElement, createElement, equals, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hashCode, hasTextValue, isLocked, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, visit
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY

public static final ElementKey<java.lang.Void,OriginalEvent> KEY
The key for this element.


HREF

public static final AttributeKey<java.lang.String> HREF
URL of the original recurring event entry.


ORIGINAL_ID

public static final AttributeKey<java.lang.String> ORIGINAL_ID
Event ID of the original recurring event entry.

Constructor Detail

OriginalEvent

public OriginalEvent()
Constructs an instance using the default key.

Method Detail

registerMetadata

public static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.


lock

public OriginalEvent lock()
Description copied from class: Element
Locks this element. A locked element cannot have any changes made to its content or its attributes or child elements. This will also lock all attributes and child elements as well. Once this method has been called, this element can be safely published to other threads.

Overrides:
lock in class Element

getHref

public java.lang.String getHref()
Returns the URL of the original recurring event entry.

Returns:
URL of the original recurring event entry

setHref

public OriginalEvent setHref(java.lang.String href)
Sets the URL of the original recurring event entry.

Parameters:
href - URL of the original recurring event entry or null to reset
Returns:
this to enable chaining setters

hasHref

public boolean hasHref()
Returns whether it has the URL of the original recurring event entry.

Returns:
whether it has the URL of the original recurring event entry

getOriginalId

public java.lang.String getOriginalId()
Returns the event ID of the original recurring event entry.

Returns:
event ID of the original recurring event entry

setOriginalId

public OriginalEvent setOriginalId(java.lang.String originalId)
Sets the event ID of the original recurring event entry.

Parameters:
originalId - event ID of the original recurring event entry or null to reset
Returns:
this to enable chaining setters

hasOriginalId

public boolean hasOriginalId()
Returns whether it has the event ID of the original recurring event entry.

Returns:
whether it has the event ID of the original recurring event entry

getOriginalStartTime

public When getOriginalStartTime()
Returns the original start time.

Returns:
original start time

setOriginalStartTime

public OriginalEvent setOriginalStartTime(When originalStartTime)
Sets the original start time.

Parameters:
originalStartTime - original start time or null to reset
Returns:
this to enable chaining setters

hasOriginalStartTime

public boolean hasOriginalStartTime()
Returns whether it has the original start time.

Returns:
whether it has the original start time