|
|||||||||
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.atom.Entry
com.google.gdata.model.gd.MessageEntry
public class MessageEntry
Extension class for manipulating entries of the Message kind.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.model.atom.Entry |
---|
Entry.EntryState |
Field Summary | |
---|---|
static Category |
CATEGORY
Message kind category. |
static ElementKey<java.lang.Void,MessageEntry> |
KEY
The key for this element. |
static java.lang.String |
KIND
Message kind term value. |
Fields inherited from class com.google.gdata.model.atom.Entry |
---|
ID, PUBLISHED, RIGHTS, state, SUMMARY, TITLE, UPDATED |
Constructor Summary | |
---|---|
|
MessageEntry()
Constructs an instance using the default key. |
protected |
MessageEntry(ElementKey<?,? extends MessageEntry> key)
Subclass constructor, allows subclasses to supply their own element 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. |
|
MessageEntry(Entry sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing Entry instance. |
Method Summary | |
---|---|
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. |
java.util.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. |
Methods inherited from class com.google.gdata.model.atom.Entry |
---|
addAuthor, addCategory, addContributor, addHtmlLink, addLink, addLink, clearAuthors, clearCategories, clearContributors, delete, getAuthors, getCanEdit, getCategories, getContent, getContributors, getControl, getEdited, getEditLink, getEtag, getHtmlLink, getId, getKind, getLink, getLinks, getLinks, getMediaEditLink, getPlainTextContent, getPublished, getResumableEditMediaLink, getRights, getSelectedFields, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, hasControl, isDraft, narrow, removeAuthor, removeContent, removeContributor, removeLink, removeLinks, removeLinks, setCanEdit, setContent, setControl, setDraft, setEdited, setEtag, setId, setKind, setPublished, setRights, setSelectedFields, setService, setSource, setSummary, setTitle, setUpdated, setVersionId, update |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KIND
public static final Category CATEGORY
public static final ElementKey<java.lang.Void,MessageEntry> KEY
Constructor Detail |
---|
public MessageEntry()
public MessageEntry(Entry sourceEntry)
Entry
instance.
sourceEntry
- source entryprotected MessageEntry(ElementKey<?,? extends MessageEntry> key)
protected MessageEntry(ElementKey<?,? extends MessageEntry> key, Entry source)
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
Element.createElement(ElementKey, Element)
.
key
- The key to use for this element.source
- source elementMethod Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public MessageEntry lock()
Element
lock
in class Element
public GeoPt getGeoPt()
public MessageEntry setGeoPt(GeoPt geoPt)
geoPt
- geo pt or null
to reset
public boolean hasGeoPt()
public Rating getRating()
public MessageEntry setRating(Rating rating)
rating
- rating or null
to reset
public boolean hasRating()
public When getTime()
public MessageEntry setTime(When time)
time
- time period description or null
to reset
public boolean hasTime()
public java.util.List<Who> getWhoList()
public MessageEntry addWhoList(Who whoList)
whoList
- person descriptionpublic boolean removeWhoList(Who whoList)
whoList
- person description
public void clearWhoList()
public boolean hasWhoList()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |