public class

OriginalEvent

extends Element
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.gd.OriginalEvent

Class Overview

Describes a link to a recurring event.

Summary

Fields
public static final AttributeKey<String> HREF URL of the original recurring event entry.
public static final ElementKey<Void, OriginalEvent> KEY The key for this element.
public static final AttributeKey<String> ORIGINAL_ID Event ID of the original recurring event entry.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
OriginalEvent()
Constructs an instance using the default key.
Protected Constructors
OriginalEvent(ElementKey<?, ? extends OriginalEvent> key)
Subclass constructor, allows subclasses to supply their own element key.
OriginalEvent(ElementKey<?, ? extends OriginalEvent> key, Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance.
Public Methods
String getHref()
Returns the URL of the original recurring event entry.
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(String href)
Sets the URL of the original recurring event entry.
OriginalEvent setOriginalId(String originalId)
Sets the event ID of the original recurring event entry.
OriginalEvent setOriginalStartTime(When originalStartTime)
Sets the original start time.
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object

Fields

public static final AttributeKey<String> HREF

URL of the original recurring event entry.

public static final ElementKey<Void, OriginalEvent> KEY

The key for this element.

public static final AttributeKey<String> ORIGINAL_ID

Event ID of the original recurring event entry.

Public Constructors

public OriginalEvent ()

Constructs an instance using the default key.

Protected Constructors

protected OriginalEvent (ElementKey<?, ? extends OriginalEvent> key)

Subclass constructor, allows subclasses to supply their own element key.

Parameters
key

protected OriginalEvent (ElementKey<?, ? extends OriginalEvent> key, Element source)

Constructs a new instance by doing a shallow copy of data from an existing Element instance. Will use the given ElementKey as the key for the element. This constructor is used when adapting from one element key to another. You cannot call this constructor directly, instead use createElement(ElementKey, Element).

Parameters
key The key to use for this element.
source Source element

Public Methods

public String getHref ()

Returns the URL of the original recurring event entry.

Returns
  • URL of the original recurring event entry

public String getOriginalId ()

Returns the event ID of the original recurring event entry.

Returns
  • event ID of the original recurring event entry

public When getOriginalStartTime ()

Returns the original start time.

Returns
  • original start time

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

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

public boolean hasOriginalStartTime ()

Returns whether it has the original start time.

Returns
  • whether it has the original start time

public OriginalEvent lock ()

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.

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public OriginalEvent setHref (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

public OriginalEvent setOriginalId (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

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