001: /*
002: * ============================================================================
003: * GNU Lesser General Public License
004: * ============================================================================
005: *
006: * JasperReports - Free Java report-generating library.
007: * Copyright (C) 2001-2006 JasperSoft Corporation http://www.jaspersoft.com
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2.1 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library; if not, write to the Free Software
021: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
022: *
023: * JasperSoft Corporation
024: * 303 Second Street, Suite 450 North
025: * San Francisco, CA 94107
026: * http://www.jaspersoft.com
027: */
028: package net.sf.jasperreports.engine;
029:
030: import java.io.Serializable;
031:
032: /**
033: * A parameter of the hyperlink associated to a print element.
034: *
035: * @author Lucian Chirita (lucianc@users.sourceforge.net)
036: * @version $Id: JRPrintHyperlinkParameter.java 1355 2006-08-04 14:31:54Z lucianc $
037: */
038: public class JRPrintHyperlinkParameter implements Serializable {
039: private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID;
040:
041: public static final String DEFAULT_VALUE_CLASS = java.lang.String.class
042: .getName();
043:
044: private String name;
045: private String valueClass = DEFAULT_VALUE_CLASS;
046: private Object value;
047:
048: /**
049: * Creates a blank parameter.
050: */
051: public JRPrintHyperlinkParameter() {
052: }
053:
054: /**
055: * Creates a parameter and initializes its properties.
056: *
057: * @param name the parameter name
058: * @param valueClass the parameter value class
059: * @param value the parameter value
060: */
061: public JRPrintHyperlinkParameter(final String name,
062: final String valueClass, final Object value) {
063: this .name = name;
064: this .valueClass = valueClass;
065: this .value = value;
066: }
067:
068: /**
069: * Returns the parameter name.
070: *
071: * @return the parameter name
072: * @see #setName(String)
073: */
074: public String getName() {
075: return name;
076: }
077:
078: /**
079: * Returns the parameter value class name.
080: *
081: * @return the parameter value class
082: * @see #setValueClass(String)
083: */
084: public String getValueClass() {
085: return valueClass;
086: }
087:
088: /**
089: * Returns the parameter value.
090: *
091: * @return the parameter value
092: * @see #setValue(Object)
093: */
094: public Object getValue() {
095: return value;
096: }
097:
098: /**
099: * Sets the parameter name.
100: *
101: * @param name the name
102: */
103: public void setName(final String name) {
104: this .name = name;
105: }
106:
107: /**
108: * Sets the parameter value class.
109: *
110: * @param valueClass the value class name
111: */
112: public void setValueClass(final String valueClass) {
113: this .valueClass = valueClass;
114: }
115:
116: /**
117: * Sets the parameter value.
118: *
119: * @param value the value
120: */
121: public void setValue(final Object value) {
122: this.value = value;
123: }
124:
125: }
|