public class

MessageEntry

extends Entry
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.atom.Entry
       ↳ com.google.gdata.model.gd.MessageEntry

Class Overview

Extension class for manipulating entries of the Message kind.

Summary

Constants
String KIND Message kind term value.
Fields
public static final Category CATEGORY Message kind category.
public static final ElementKey<Void, MessageEntry> KEY The key for this element.
[Expand]
Inherited Fields
From class com.google.gdata.model.atom.Entry
From class com.google.gdata.model.Element
Public Constructors
MessageEntry()
Constructs an instance using the default key.
MessageEntry(Entry sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing Entry instance.
Protected Constructors
MessageEntry(ElementKey<?, ? extends MessageEntry> key)
Subclass constructor, allows subclasses to supply their own element key.
MessageEntry(ElementKey<?, ? extends MessageEntry> key, Entry source)
Constructs a new instance by doing a shallow copy of data from an existing Entry instance.
Public Methods
MessageEntry addWhoList(Who whoList)
Adds a new person description.
void clearWhoList()
Removes all existing person description instances.
GeoPt getGeoPt()
Returns the geo pt.
Rating getRating()
Returns the rating.
When getTime()
Returns the time period description.
List<Who> getWhoList()
Returns the person descriptions.
boolean hasGeoPt()
Returns whether it has the geo pt.
boolean hasRating()
Returns whether it has the rating.
boolean hasTime()
Returns whether it has the time period description.
boolean hasWhoList()
Returns whether it has the person descriptions.
MessageEntry lock()
Locks this element.
static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
boolean removeWhoList(Who whoList)
Removes an existing person description.
MessageEntry setGeoPt(GeoPt geoPt)
Sets the geo pt.
MessageEntry setRating(Rating rating)
Sets the rating.
MessageEntry setTime(When time)
Sets the time period description.
[Expand]
Inherited Methods
From class com.google.gdata.model.atom.Entry
From class com.google.gdata.model.Element
From class java.lang.Object
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry

Constants

public static final String KIND

Message kind term value.

Constant Value: "http://schemas.google.com/g/2005#message"

Fields

public static final Category CATEGORY

Message kind category.

public static final ElementKey<Void, MessageEntry> KEY

The key for this element.

Public Constructors

public MessageEntry ()

Constructs an instance using the default key.

public MessageEntry (Entry sourceEntry)

Constructs a new instance by doing a shallow copy of data from an existing Entry instance.

Parameters
sourceEntry Source entry

Protected Constructors

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

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

Parameters
key

protected MessageEntry (ElementKey<?, ? extends MessageEntry> key, Entry source)

Constructs a new instance by doing a shallow copy of data from an existing Entry 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 MessageEntry addWhoList (Who whoList)

Adds a new person description.

Parameters
whoList Person description

public void clearWhoList ()

Removes all existing person description instances.

public GeoPt getGeoPt ()

Returns the geo pt.

Returns
  • geo pt

public Rating getRating ()

Returns the rating.

Returns
  • rating

public When getTime ()

Returns the time period description.

Returns
  • time period description

public List<Who> getWhoList ()

Returns the person descriptions.

Returns
  • person descriptions

public boolean hasGeoPt ()

Returns whether it has the geo pt.

Returns
  • whether it has the geo pt

public boolean hasRating ()

Returns whether it has the rating.

Returns
  • whether it has the rating

public boolean hasTime ()

Returns whether it has the time period description.

Returns
  • whether it has the time period description

public boolean hasWhoList ()

Returns whether it has the person descriptions.

Returns
  • whether it has the person descriptions

public MessageEntry 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 boolean removeWhoList (Who whoList)

Removes an existing person description.

Parameters
whoList Person description
Returns
  • true if the whoList was removed

public MessageEntry setGeoPt (GeoPt geoPt)

Sets the geo pt.

Parameters
geoPt Geo pt or null to reset
Returns
  • this to enable chaining setters

public MessageEntry setRating (Rating rating)

Sets the rating.

Parameters
rating Rating or null to reset
Returns
  • this to enable chaining setters

public MessageEntry setTime (When time)

Sets the time period description.

Parameters
time Time period description or null to reset
Returns
  • this to enable chaining setters