KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > efs > openreports > engine > input > ReportEngineInput


1 /*
2  * Copyright (C) 2006 Erik Swenson - erik@oreports.com
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the Free
6  * Software Foundation; either version 2 of the License, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16  * Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */

19
20 package org.efs.openreports.engine.input;
21
22 import java.util.Map JavaDoc;
23
24 import org.efs.openreports.objects.Report;
25
26 /**
27  * ReportEngineInput contains information needed to generate a report by the
28  * ReportEngine. Report, parameters, and exportType are required.
29  *
30  * @author Erik Swenson
31  */

32
33 public class ReportEngineInput
34 {
35     private Report report;
36     private Map JavaDoc parameters;
37     private int exportType;
38     
39     // JasperReports only
40
private Map JavaDoc imagesMap;
41     private boolean inlineImages;
42     //
43

44     public ReportEngineInput(Report report, Map JavaDoc parameters)
45     {
46         this.report = report;
47         this.parameters = parameters;
48     }
49
50     public Map JavaDoc getParameters()
51     {
52         return parameters;
53     }
54
55     public void setParameters(Map JavaDoc parameters)
56     {
57         this.parameters = parameters;
58     }
59
60     public Report getReport()
61     {
62         return report;
63     }
64
65     public void setReport(Report report)
66     {
67         this.report = report;
68     }
69
70     public int getExportType()
71     {
72         return exportType;
73     }
74
75     public void setExportType(int exportType)
76     {
77         this.exportType = exportType;
78     }
79
80     public Map JavaDoc getImagesMap()
81     {
82         return imagesMap;
83     }
84
85     public void setImagesMap(Map JavaDoc imagesMap)
86     {
87         this.imagesMap = imagesMap;
88     }
89
90     public boolean isInlineImages()
91     {
92         return inlineImages;
93     }
94
95     public void setInlineImages(boolean inlineImages)
96     {
97         this.inlineImages = inlineImages;
98     }
99 }
100
Popular Tags