public class

Rfc822Msg

extends ValueConstruct
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ValueConstruct
       ↳ com.google.gdata.data.appsforyourdomain.migration.Rfc822Msg

Class Overview

Google Apps name space element: <apps:rfc822Msg>. Used to model the contents of a mail message from a legacy email platform.

Summary

Nested Classes
enum Rfc822Msg.Encoding A method by which mail may be encoded. 
Constants
String ATTRIBUTE_ENCODING
String EXTENSION_LOCAL_NAME
Fields
private static ExtensionDescription EXTENSION_DESC the extension description is shared by all instances of this class
private Rfc822Msg.Encoding encoding
[Expand]
Inherited Fields
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
Public Constructors
Rfc822Msg()
Creates a new Rfc822Msg with the rfc822Msg text set to null and no encoding.
Rfc822Msg(String msg)
Creates a new Rfc822Msg object with the specified text and no encoding.
Rfc822Msg(String msg, Rfc822Msg.Encoding encoding)
Creates a new Rfc822Msg object with the specified text and encoding.
Public Methods
boolean equals(Object obj)
static ExtensionDescription getDefaultDescription()
Rfc822Msg.Encoding getEncoding()
String getMsg()
int hashCode()
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
[Expand]
Inherited Methods
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

public static final String ATTRIBUTE_ENCODING

Constant Value: "encoding"

public static final String EXTENSION_LOCAL_NAME

Constant Value: "rfc822Msg"

Fields

private static ExtensionDescription EXTENSION_DESC

the extension description is shared by all instances of this class

private Rfc822Msg.Encoding encoding

Public Constructors

public Rfc822Msg ()

Creates a new Rfc822Msg with the rfc822Msg text set to null and no encoding.

public Rfc822Msg (String msg)

Creates a new Rfc822Msg object with the specified text and no encoding.

Parameters
msg The RFC822 text

public Rfc822Msg (String msg, Rfc822Msg.Encoding encoding)

Creates a new Rfc822Msg object with the specified text and encoding.

Parameters
msg The RFC822 text
encoding The Rfc822Msg.Encoding of this message

Public Methods

public boolean equals (Object obj)

Parameters
obj

public static ExtensionDescription getDefaultDescription ()

public Rfc822Msg.Encoding getEncoding ()

Returns

public String getMsg ()

Returns
  • the rfc822Msg text

public int hashCode ()

public void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper