01: /*
02: * Template.java
03: *
04: * Created on Aug 21, 2007, 5:32:21 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: /*
11: * Copyright (C) 2006 JasperSoft http://www.jaspersoft.com
12: *
13: * This program is free software; you can redistribute it and/or modify
14: * it under the terms of the GNU General Public License as published by
15: * the Free Software Foundation; either version 2 of the License, or
16: * (at your option) any later version.
17: *
18: * This program is distributed WITHOUT ANY WARRANTY; and without the
19: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20: * See the GNU General Public License for more details.
21: *
22: * You should have received a copy of the GNU General Public License
23: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
24: * or write to:
25: *
26: * Free Software Foundation, Inc.,
27: * 59 Temple Place - Suite 330,
28: * Boston, MA USA 02111-1307
29: */
30:
31: package it.businesslogic.ireport;
32:
33: /**
34: * This class represents a template in a report.
35: * @author gtoffoli
36: */
37: public class Template {
38:
39: private String expression;
40:
41: public String getExpression() {
42: return expression;
43: }
44:
45: public void setExpression(String expression) {
46: this .expression = expression;
47: }
48:
49: public String getExpressionClass() {
50: return expressionClass;
51: }
52:
53: public void setExpressionClass(String expressionClass) {
54: this .expressionClass = expressionClass;
55: }
56:
57: private String expressionClass;
58:
59: public Template(String expression, String clazz) {
60: this .expression = expression;
61: this .expressionClass = clazz;
62: }
63:
64: public String toString() {
65: return "Template (" + expression + ")";
66: }
67: }
|