001: /*
002: * Copyright (C) 2006 Erik Swenson - erik@oreports.com
003: *
004: * This program is free software; you can redistribute it and/or modify it
005: * under the terms of the GNU General Public License as published by the Free
006: * Software Foundation; either version 2 of the License, or (at your option)
007: * any later version.
008: *
009: * This program is distributed in the hope that it will be useful, but WITHOUT
010: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
011: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
012: * more details.
013: *
014: * You should have received a copy of the GNU General Public License along with
015: * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
016: * Place - Suite 330, Boston, MA 02111-1307, USA.
017: *
018: */
019:
020: package org.efs.openreports.engine.input;
021:
022: import java.util.Locale;
023: import java.util.Map;
024:
025: import org.efs.openreports.ReportConstants.ExportType;
026: import org.efs.openreports.objects.Report;
027:
028: /**
029: * ReportEngineInput contains information needed to generate a report by the
030: * ReportEngine. Report, parameters, and exportType are required.
031: *
032: * @author Erik Swenson
033: */
034:
035: public class ReportEngineInput {
036: private Report report;
037: private Map<String, Object> parameters;
038: private ExportType exportType;
039: private Locale locale;
040:
041: private String xmlInput;
042:
043: // JasperReports only
044: private Map imagesMap;
045: private boolean inlineImages;
046:
047: //
048:
049: public ReportEngineInput(Report report,
050: Map<String, Object> parameters) {
051: this .report = report;
052: this .parameters = parameters;
053: }
054:
055: public Map<String, Object> getParameters() {
056: return parameters;
057: }
058:
059: public void setParameters(Map<String, Object> parameters) {
060: this .parameters = parameters;
061: }
062:
063: public Report getReport() {
064: return report;
065: }
066:
067: public void setReport(Report report) {
068: this .report = report;
069: }
070:
071: public ExportType getExportType() {
072: return exportType;
073: }
074:
075: public void setExportType(ExportType exportType) {
076: this .exportType = exportType;
077: }
078:
079: public Map getImagesMap() {
080: return imagesMap;
081: }
082:
083: public void setImagesMap(Map imagesMap) {
084: this .imagesMap = imagesMap;
085: }
086:
087: public boolean isInlineImages() {
088: return inlineImages;
089: }
090:
091: public void setInlineImages(boolean inlineImages) {
092: this .inlineImages = inlineImages;
093: }
094:
095: public String getXmlInput() {
096: return xmlInput;
097: }
098:
099: public void setXmlInput(String xmlInput) {
100: this .xmlInput = xmlInput;
101: }
102:
103: public Locale getLocale() {
104: return locale;
105: }
106:
107: public void setLocale(Locale locale) {
108: this.locale = locale;
109: }
110: }
|