1    package com.instantbank.component.lettertemplate.util;
2    
3    import java.util.*;
4    import java.io.Serializable;
5    
6    /**
7     * Utility class allowing manipulation of letter batch review.
8     *
9     * @author InstantBank (Jorge Cardenas, Roberto Contreras).
10    * @created November 2002
11    */
12   public class LetterBatchReviewModel
13       implements Serializable {
14   
15     /**
16      * Contains of type JobLogInfo ordered alfabetically by
17      * JobLogInfo.name. This field can be null in case there
18      * were no matching Jobs.
19      */
20     private ArrayList jobLogInfo;
21   
22     /**
23      * Contains the date in format (dd-MM-yyyy)
24      */
25     private String dayMonthYear;
26   
27   
28     /**
29      *  Constructor for the LetterBatchReviewModel object
30      *
31      * @param dayMonthYear String of date in format (dd-MM-yyyy)
32      */
33     public LetterBatchReviewModel(String dayMonthYear) {
34       this.jobLogInfo = new ArrayList();
35       this.dayMonthYear = dayMonthYear;
36     }
37   
38   
39     /**
40      *  Gets the jobLogInfo attribute of the LetterBatchReviewModel object
41      *
42      * @return The jobLogInfo value
43      */
44     public ArrayList getJobLogInfo() {
45       return (this.jobLogInfo);
46     }
47   
48   
49     /**
50      *  Sets the dayMonthYear attribute of the LetterBatchReviewModel object
51      *
52      * @param dayMonthYear The new dayMonthYear value
53      */
54     public void setDayMonthYear(String dayMonthYear) {
55       this.dayMonthYear = dayMonthYear;
56     }
57   
58   
59     /**
60      *  Gets the dayMonthYear attribute of the LetterBatchReviewModel object
61      *
62      * @return The dayMonthYear value
63      */
64     public String getDayMonthYear() {
65       return (this.dayMonthYear);
66     }
67   
68   
69     /**
70      *  Print the attributes of class
71      *
72      * @return The String of class attributes
73      */
74     public String toString() {
75   
76       StringBuffer toString = new StringBuffer();
77       toString.append("\njobLogInfo = ");
78       toString.append(jobLogInfo);
79       toString.append("\ndayMonthYear = ");
80       toString.append(dayMonthYear);
81       toString.append("\n");
82   
83       return new String(toString);
84     }
85   }
86