1 28 package net.sf.jasperreports.engine.base; 29 30 import java.io.Serializable ; 31 32 import net.sf.jasperreports.engine.JRConstants; 33 import net.sf.jasperreports.engine.JRDatasetParameter; 34 import net.sf.jasperreports.engine.JRExpression; 35 36 37 43 public class JRBaseDatasetParameter implements JRDatasetParameter, Serializable 44 { 45 46 47 50 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 51 52 55 protected String name = null; 56 protected JRExpression expression = null; 57 58 59 62 protected JRBaseDatasetParameter() 63 { 64 } 65 66 67 70 protected JRBaseDatasetParameter(JRDatasetParameter datasetParameter, JRBaseObjectFactory factory) 71 { 72 factory.put(datasetParameter, this); 73 74 name = datasetParameter.getName(); 75 expression = factory.getExpression(datasetParameter.getExpression()); 76 } 77 78 79 82 public String getName() 83 { 84 return this.name; 85 } 86 87 90 public JRExpression getExpression() 91 { 92 return this.expression; 93 } 94 95 96 } 97 | Popular Tags |