KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xpetstore > services > mail > model > Email


1 package xpetstore.services.mail.model;
2
3 import java.io.Serializable JavaDoc;
4
5
6 /**
7  * @author <a HREF="mailto:tchbansi@sourceforge.net">Herve Tchepannou</a>
8  */

9 public class Email
10     implements Serializable JavaDoc
11 {
12     //~ Instance fields --------------------------------------------------------
13

14     private String JavaDoc to;
15     private String JavaDoc subject;
16     private String JavaDoc body;
17
18     //~ Constructors -----------------------------------------------------------
19

20     public Email( String JavaDoc to,
21                   String JavaDoc subject,
22                   String JavaDoc body )
23     {
24         this.to = to;
25         this.subject = subject;
26         this.body = body;
27     }
28
29     //~ Methods ----------------------------------------------------------------
30

31     public String JavaDoc getTo( )
32     {
33         return to;
34     }
35
36     public String JavaDoc getSubject( )
37     {
38         return subject;
39     }
40
41     public String JavaDoc getBody( )
42     {
43         return body;
44     }
45 }
46
Popular Tags