public class MessageEntry extends BaseEntry<MessageEntry>
BaseEntry.AtomHandler
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Modifier and Type | Field and Description |
---|---|
static Category |
CHAT_CATEGORY
Category used to label chat message feeds and entries.
|
static Category |
INBOX_CATEGORY
Category used to label inbox message feeds and entries.
|
static Category |
MESSAGE_CATEGORY
Category used to label any entry that contains Message extensions
|
static java.lang.String |
MESSAGE_KIND
Kind term value for Event category labels.
|
static Category |
SENT_CATEGORY
Category used to label sent message feeds and entries.
|
static Category |
SPAM_CATEGORY
Category used to label spam message feeds and entries.
|
static Category |
STARRED_CATEGORY
Category used to label starred message feeds and entries.
|
static Category |
UNREAD_CATEGORY
Category used to label unread message feeds and entries.
|
Constructor and Description |
---|
MessageEntry()
Constructs a new MessageEntry with the appropriate kind category
to indicate that it is a message.
|
MessageEntry(BaseEntry<?> sourceEntry)
Constructs a new MessaEntry instance by doing a shallow copy of data
from an existing BaseEntry instance.
|
Modifier and Type | Method and Description |
---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Initializes an ExtensionProfile based upon the extensions expected
by an MessageEntry.
|
GeoPt |
getGeoPt() |
Rating |
getRating() |
When |
getTime() |
java.util.List<Who> |
getWhoList() |
void |
setGeoPt(GeoPt geoPt) |
void |
setRating(Rating rating) |
void |
setTime(When when) |
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getKind, getLink, getLinks, getLinks, getMediaEditLink, getPlainTextContent, getPubControl, getPublished, getResumableEditMediaLink, getRights, getSelectedFields, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setKind, setPubControl, setPublished, setRights, setSelectedFields, setService, setSource, setSummary, setTitle, setUpdated, setVersionId, update
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public static final java.lang.String MESSAGE_KIND
public static final Category MESSAGE_CATEGORY
public static final Category STARRED_CATEGORY
public static final Category UNREAD_CATEGORY
public static final Category CHAT_CATEGORY
public static final Category SPAM_CATEGORY
public static final Category SENT_CATEGORY
public static final Category INBOX_CATEGORY
public MessageEntry()
public MessageEntry(BaseEntry<?> sourceEntry)
public void declareExtensions(ExtensionProfile extProfile)
declareExtensions
in interface Kind.Adaptor
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)
public Rating getRating()
public void setRating(Rating rating)
public When getTime()
public void setTime(When when)
public GeoPt getGeoPt()
public void setGeoPt(GeoPt geoPt)
public java.util.List<Who> getWhoList()