ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/DBReporter/ReportPage.java
(Generate patch)

Comparing projects/cms/source/reports/DBReporter/ReportPage.java (file contents):
Revision 1.1 by pjm2, Mon Dec 11 21:26:46 2000 UTC vs.
Revision 1.10 by pjm2, Sun Jan 7 19:54:03 2001 UTC

# Line 17 | Line 17 | public class ReportPage {
17       */
18      public final String REVISION = "$Revision$";
19      
20 +    public static final int HOUR = 0;
21 +    public static final int DAY = 1;
22 +    public static final int WEEK = 2;
23 +    public static final int MONTH = 3;
24 +    
25 +    
26   //---STATIC METHODS---
27  
28   //---CONSTRUCTORS---
29  
30 <    public ReportPage(String location, String description, int type){
30 >    public ReportPage(String location, String machine_name, String when, String report, int type){
31          
32 <        if (type < 0 || type > 3){
32 >        if (type < HOUR || type > MONTH){
33              System.out.println("Could not add the page.");
34          }
35          
36          _location = location;
37 <        _description = description;
37 >        _machine_name = machine_name;
38 >        _when = when;
39 >        _report = report;
40          _type = type;
41      }
42  
# Line 54 | Line 62 | public class ReportPage {
62          return _location;
63      }
64      
65 <    public String getDescription(){
66 <        return _description;
65 >    public String getMachineName(){
66 >        return _machine_name;
67      }
68 +
69 +    public String getWhen(){
70 +        return _when;
71 +    }
72      
73 +    public String getReport(){
74 +        return _report;
75 +    }
76 +    
77      public int getType(){
78          return _type;
79      }
80 +
81      
82      
83   //---ATTRIBUTES---
84  
85      private String _location;
86 <    private String _description;
86 >    private String _machine_name;
87 >    private String _when;
88 >    private String _report;
89      private int _type;
90  
91   //---STATIC ATTRIBUTES---
73    
74    public static int HOUR = 0;
75    public static int DAY = 1;
76    public static int WEEK = 2;
77    public static int MONTH = 3;
92      
93   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines