nl.pbemengine.engine.ng.blueprint
Class Report

java.lang.Object
  extended by nl.pbemengine.engine.ng.blueprint.Report

public class Report
extends java.lang.Object

Representation of a player report that can easily be converted to an e-mail

Author:
Jeroen Steenbeeke

Constructor Summary
Report(java.lang.String senderMail, java.lang.String receiverMail, java.lang.String subject, MailPart body)
          Create a new report with the indicated sender, receiver, subject and body
 
Method Summary
 void addAttachment(MailPart part)
          Add an attachment of this e-mail
 java.util.List<MailPart> getAttachments()
          Get a list of all attachments
 MailPart getBody()
          Get the body of the e-mail
 java.lang.String getReceiverMail()
          Get the intended receiver of this report
 java.lang.String getSenderMail()
          Get the sender of this report
 java.lang.String getSubject()
          The subject of the report
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Report

public Report(java.lang.String senderMail,
              java.lang.String receiverMail,
              java.lang.String subject,
              MailPart body)
Create a new report with the indicated sender, receiver, subject and body

Parameters:
senderMail - The e-mail address of the sender
receiverMail - The e-mail address of the receiver
subject - The subject of the e-mail
body - The body of the e-mail
Method Detail

getBody

public MailPart getBody()
Get the body of the e-mail

Returns:
A MailPart object representing the body

getReceiverMail

public java.lang.String getReceiverMail()
Get the intended receiver of this report

Returns:
A String containing the receiver of this report

getSenderMail

public java.lang.String getSenderMail()
Get the sender of this report

Returns:

getSubject

public java.lang.String getSubject()
The subject of the report

Returns:
A String containing the subject of the report

getAttachments

public java.util.List<MailPart> getAttachments()
Get a list of all attachments

Returns:
A List of MailPart objects

addAttachment

public void addAttachment(MailPart part)
Add an attachment of this e-mail

Parameters:
part - The attachment to add


Copyright © 2008. All Rights Reserved.