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.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_ENCODING |
static java.lang.String |
EXTENSION_LOCAL_NAME |
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 |
---|---|
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, setValue
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public 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 messagepublic void putAttributes(AttributeGenerator generator)
AbstractExtension
AbstractExtension.generate(XmlWriter,ExtensionProfile)
. Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.putAttributes
in class ValueConstruct
generator
- attribute generatorpublic int hashCode()
hashCode
in class ValueConstruct
public boolean equals(java.lang.Object obj)
equals
in class ValueConstruct
public static ExtensionDescription getDefaultDescription()