public class

MessageEntry

extends BaseEntry<E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.webmastertools.MessageEntry

Class Overview

This class represents a message entry. It contains information of a message of the Notification Console. The message is identified by the MessageId (accessed through getId() and setId(), which are implemented in BaseEntry) and its fields are: subject, date, read / unread, language and message body. Example (common Atom nodes are omitted):

   
     1234-12345678/
     en
     Crawl rate change request for
       http://www.example.com/
     2007-1-1T18:30:00.000Z
     false
     We've received a request from a site owner to change the rate
       at which Googlebot crawls this site: http://www.example.com/.
       Old crawl rate: Slower, New crawl rate: Normal, This new crawl rate
       will stay in effect for 90 days.
   
 

Summary

Nested Classes
class MessageEntry.BodyExtension Value construct to represent field. 
class MessageEntry.DateExtension DateTimeValueConstruct to represent field. 
class MessageEntry.LanguageExtension Value construct to represent field. 
class MessageEntry.ReadExtension BoolValueConstruct to represent field. 
class MessageEntry.SubjectExtension Value construct to represent field. 
Constants
String BODY
String DATE
String LANGUAGE Names for the XML nodes defined in the entry.
String READ
String SUBJECT
Fields
private static final Category CATEGORY Kind category used to label this entry.
[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
MessageEntry()
Constructs a new MessageEntry.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Initializes an ExtensionProfile based upon the extensions expected by a MessageEntry.
String getBody()
Returns the body of the message.
DateTime getDate()
Returns the Date field of the message.
String getLanguage()
Returns the Language field of the message.
boolean getRead()
Get the Read status of the message.
String getSubject()
Returns the Subject field of the message.
void setBody(String body)
Changes the body of the message.
void setDate(DateTime date)
Changes the Date field of the message.
void setLanguage(String language)
Changes the Language field of the message.
void setRead(boolean read)
Changes the Read status of the message.
void setSubject(String subject)
Changes the Subject field of the message.
[Expand]
Inherited Methods
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Constants

private static final String BODY

Constant Value: "body"

private static final String DATE

Constant Value: "date"

private static final String LANGUAGE

Names for the XML nodes defined in the entry.

Constant Value: "language"

private static final String READ

Constant Value: "read"

private static final String SUBJECT

Constant Value: "subject"

Fields

private static final Category CATEGORY

Kind category used to label this entry.

Public Constructors

public MessageEntry ()

Constructs a new MessageEntry.

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Initializes an ExtensionProfile based upon the extensions expected by a MessageEntry. It specifies which nodes are expected.

Parameters
extProfile The ExtensionProfile to initialize.

public String getBody ()

Returns the body of the message.

Returns
  • the body of the message.

public DateTime getDate ()

Returns the Date field of the message.

Returns
  • the DateTime Date field of the message.

public String getLanguage ()

Returns the Language field of the message.

Returns
  • the Language field of the message.

public boolean getRead ()

Get the Read status of the message.

Returns
  • true if the message is marked as read and false otherwise.

public String getSubject ()

Returns the Subject field of the message.

Returns
  • the Subject field of the message.

public void setBody (String body)

Changes the body of the message.

Parameters
body Is a new body for the message.

public void setDate (DateTime date)

Changes the Date field of the message.

Parameters
date Is a new DateTime for the message.

public void setLanguage (String language)

Changes the Language field of the message.

Parameters
language Is a new Language field for the message.

public void setRead (boolean read)

Changes the Read status of the message.

Parameters
read Is the new Read status of the message.

public void setSubject (String subject)

Changes the Subject field of the message.

Parameters
subject Is a new Subject field for the message.