001: /*
002: * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved.
003: * http://www.jaspersoft.com.
004: *
005: * Unless you have purchased a commercial license agreement from JasperSoft,
006: * the following license terms apply:
007: *
008: * This program is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU General Public License version 2 as published by
010: * the Free Software Foundation.
011: *
012: * This program is distributed WITHOUT ANY WARRANTY; and without the
013: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014: * See the GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018: * or write to:
019: *
020: * Free Software Foundation, Inc.,
021: * 59 Temple Place - Suite 330,
022: * Boston, MA USA 02111-1307
023: *
024: *
025: *
026: *
027: * CrosstabParameter.java
028: *
029: */
030:
031: package it.businesslogic.ireport.crosstab;
032:
033: public class CrosstabParameter {
034: private String name;
035: private String classType;
036: private String parameterValueExpression = "";
037:
038: public CrosstabParameter(String name, String classType,
039: String parameterValueExpression) {
040: this .name = name;
041: this .setClassType(classType);
042: this .setParameterValueExpression(parameterValueExpression);
043: }
044:
045: public CrosstabParameter(String name, String classType) {
046: this (name, classType, "");
047: }
048:
049: public CrosstabParameter(String name) {
050: this (name, "java.lang.String", "");
051: }
052:
053: public String toString() {
054: return name;
055: }
056:
057: /** Getter for property classType.
058: * @return Value of property classType.
059: *
060: */
061: public java.lang.String getClassType() {
062: return classType;
063: }
064:
065: /** Setter for property classType.
066: * @param classType New value of property classType.
067: *
068: */
069: public void setClassType(java.lang.String classType) {
070: this .classType = classType;
071: }
072:
073: /** Getter for property name.
074: * @return Value of property name.
075: *
076: */
077: public java.lang.String getName() {
078: return name;
079: }
080:
081: /** Setter for property name.
082: * @param name New value of property name.
083: *
084: */
085: public void setName(java.lang.String name) {
086: this .name = name;
087: }
088:
089: public CrosstabParameter cloneMe() {
090: CrosstabParameter jrp = new CrosstabParameter(name,
091: getClassType(), getParameterValueExpression());
092: return jrp;
093: }
094:
095: public String getParameterValueExpression() {
096: return parameterValueExpression;
097: }
098:
099: public void setParameterValueExpression(
100: String parameterValueExpression) {
101: this.parameterValueExpression = parameterValueExpression;
102: }
103:
104: }
|