public class Rfc822Msg extends ValueConstruct
<apps:rfc822Msg>. Used to model
the contents of a mail message from a legacy email platform.| Modifier and Type | Class and Description |
|---|---|
static class |
Rfc822Msg.Encoding
A method by which mail may be encoded.
|
AbstractExtension.AttributesHandler| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_ENCODING |
static java.lang.String |
EXTENSION_LOCAL_NAME |
attrNamelocalName, namespace| Constructor and Description |
|---|
Rfc822Msg()
Creates a new Rfc822Msg with the rfc822Msg text set to null and no
encoding.
|
Rfc822Msg(java.lang.String msg)
Creates a new Rfc822Msg object with the specified text and no encoding.
|
Rfc822Msg(java.lang.String msg,
Rfc822Msg.Encoding encoding)
Creates a new Rfc822Msg object with the specified text and encoding.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
|
boolean |
equals(java.lang.Object obj) |
static ExtensionDescription |
getDefaultDescription() |
Rfc822Msg.Encoding |
getEncoding() |
java.lang.String |
getMsg() |
int |
hashCode() |
void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
generate, getHandler, getValue, hasValue, isRequired, setRequired, setValuedisableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic static final java.lang.String EXTENSION_LOCAL_NAME
public static final java.lang.String ATTRIBUTE_ENCODING
public Rfc822Msg()
public Rfc822Msg(java.lang.String msg)
msg - the RFC822 textpublic Rfc822Msg(java.lang.String msg,
Rfc822Msg.Encoding encoding)
msg - the RFC822 textencoding - the Rfc822Msg.Encoding of this messagepublic java.lang.String getMsg()
public Rfc822Msg.Encoding getEncoding()
Rfc822Msg.Encoding of this messageprotected void consumeAttributes(AttributeHelper helper) throws ParseException
AbstractExtensionAttributeHelper.consumeContent(boolean) to consume the element's text
content. Called from AbstractExtension.getHandler(com.google.gdata.data.ExtensionProfile, java.lang.String, java.lang.String, org.xml.sax.Attributes). Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.consumeAttributes in class ValueConstructhelper - attribute helperParseException - any parsing exceptionpublic void putAttributes(AttributeGenerator generator)
AbstractExtensionAbstractExtension.generate(XmlWriter,ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.putAttributes in class ValueConstructgenerator - attribute generatorpublic int hashCode()
hashCode in class ValueConstructpublic boolean equals(java.lang.Object obj)
equals in class ValueConstructpublic static ExtensionDescription getDefaultDescription()