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.JRSubreportReturnValue; 34 import net.sf.jasperreports.engine.JRVariable; 35 36 42 public class JRBaseSubreportReturnValue implements JRSubreportReturnValue, Serializable 43 { 44 45 48 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 49 50 53 protected String subreportVariable = null; 54 55 58 protected String toVariable = null; 59 60 63 protected byte calculation = JRVariable.CALCULATION_NOTHING; 64 65 68 protected String incrementerFactoryClassName = null; 69 70 71 protected JRBaseSubreportReturnValue() 72 { 73 } 74 75 76 protected JRBaseSubreportReturnValue(JRSubreportReturnValue returnValue, JRBaseObjectFactory factory) 77 { 78 factory.put(returnValue, this); 79 80 subreportVariable = returnValue.getSubreportVariable(); 81 toVariable = returnValue.getToVariable(); 82 calculation = returnValue.getCalculation(); 83 incrementerFactoryClassName = returnValue.getIncrementerFactoryClassName(); 84 } 85 86 91 public String getSubreportVariable() 92 { 93 return this.subreportVariable; 94 } 95 96 101 public String getToVariable() 102 { 103 return this.toVariable; 104 } 105 106 114 public byte getCalculation() 115 { 116 return calculation; 117 } 118 119 127 public String getIncrementerFactoryClassName() 128 { 129 return incrementerFactoryClassName; 130 } 131 132 } 133 | Popular Tags |