mail.types
Class TextMail
java.lang.Object
mail.Mail
mail.types.TextMail
public class TextMail
- extends Mail
a plain text mail
- Author:
- Arne Müller
Field Summary |
(package private) static java.lang.String |
NAME
|
(package private) ID |
sender
|
(package private) java.lang.String |
text
|
Method Summary |
void |
build(org.w3c.dom.Element e)
|
org.w3c.dom.Element |
buildContent(org.w3c.dom.Document d)
builds an XML-Element out of this Mail |
ID |
getSender()
returns the sender of this mail. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NAME
static java.lang.String NAME
text
java.lang.String text
sender
ID sender
TextMail
public TextMail(ID receiver,
java.lang.String message,
ID sender)
TextMail
public TextMail(ID receiver)
buildContent
public org.w3c.dom.Element buildContent(org.w3c.dom.Document d)
- Description copied from class:
Mail
- builds an XML-Element out of this Mail
- Specified by:
buildContent
in class Mail
- Parameters:
d
- the document to place the element into
- Returns:
- the created XML-element
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
build
public void build(org.w3c.dom.Element e)
- Specified by:
build
in class Mail
getSender
public ID getSender()
- Description copied from class:
Mail
- returns the sender of this mail.
The sender might not be public, so it is possible for this method to return null,
if the sender wishes to stay hidden (e.g. by encryption)
- Specified by:
getSender
in class Mail
- Returns:
- the sender, or null, if the sender is hidden