/[gzz]/gzz/gzz/modules/email/MockEmailInStorm.java
ViewVC logotype

Diff of /gzz/gzz/modules/email/MockEmailInStorm.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by benja, Tue Nov 5 22:36:07 2002 UTC revision 1.2 by benja, Wed Nov 6 17:17:46 2002 UTC
# Line 4  import gzz.media.impl.*; Line 4  import gzz.media.impl.*;
4    
5  public class MockEmailInStorm implements EmailInStorm{  public class MockEmailInStorm implements EmailInStorm{
6    
7         Enfilade1D from;      Enfilade1D from;
8         Enfilade1D to;      Enfilade1D to;
9         Enfilade1D date;      Enfilade1D date;
10         Enfilade1D subject;      Enfilade1D subject;
11         Enfilade1D body;      Enfilade1D body;
12    
13             public Enfilade1D getFrom(){      public Enfilade1D getFrom(){
14               return from;          return from;
15             }      }
16        
17             public Enfilade1D getTo(){      public Enfilade1D getTo(){
18               return to;          return to;
19             }      }
20        
21        public Enfilade1D getDate(){
22            return date;
23        }
24        
25        public Enfilade1D getSubject(){
26            return subject;
27        }
28                        
29             public Enfilade1D getDate(){      public Enfilade1D getBody(){
30               return date;          return body;
31             }      }
32                        
33             public Enfilade1D getSubject(){      public MockEmailInStorm(String from, String to, String date,
34               return subject;                              String subject, String body){
            }  
             
            public Enfilade1D getBody(){  
              return body;  
            }  
             
            public MockEmailInStorm(String from, String to, String date, String subject, String body){  
35    
36               Enfilade1D.Maker maker = new Enfilade1DImpl.Enfilade1DImplMaker();          Enfilade1D.Maker maker = new Enfilade1DImpl.Enfilade1DImplMaker();
37                        
38               this.from=maker.makeEnfilade(new FakeTextSpan(from));          this.from=maker.makeEnfilade(new FakeTextSpan(from));
39               this.to=maker.makeEnfilade(new FakeTextSpan(to));          this.to=maker.makeEnfilade(new FakeTextSpan(to));
40               this.date=maker.makeEnfilade(new FakeTextSpan(date));          this.date=maker.makeEnfilade(new FakeTextSpan(date));
41               this.subject=maker.makeEnfilade(new FakeTextSpan(subject));          this.subject=maker.makeEnfilade(new FakeTextSpan(subject));
42               this.body=maker.makeEnfilade(new FakeTextSpan(body));          this.body=maker.makeEnfilade(new FakeTextSpan(body));
43    
44             }      }
45         }  }
46    
47    
48    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26