Package net.sf.jasperreports.engine.base
Class BaseCommonReturnValue
- java.lang.Object
-
- net.sf.jasperreports.engine.base.BaseCommonReturnValue
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,CommonReturnValue,JRCloneable
- Direct Known Subclasses:
BaseExpressionReturnValue,BaseReturnValue,DesignCommonReturnValue
public class BaseCommonReturnValue extends java.lang.Object implements CommonReturnValue, java.io.Serializable
Base implementation ofCommonReturnValue.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CalculationEnumcalculationThe calculation type.protected java.lang.StringincrementerFactoryClassNameThe incrementer factory class name.protected java.lang.StringtoVariableThe name of the variable where the value should be copied.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseCommonReturnValue()protectedBaseCommonReturnValue(CommonReturnValue returnValue, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CalculationEnumgetCalculation()Returns the calculation type.java.lang.StringgetIncrementerFactoryClassName()Returns the incrementer factory class name.java.lang.StringgetToVariable()Returns the name of the report variable where the value should be copied.
-
-
-
Field Detail
-
toVariable
protected java.lang.String toVariable
The name of the variable where the value should be copied.
-
calculation
protected CalculationEnum calculation
The calculation type.
-
incrementerFactoryClassName
protected java.lang.String incrementerFactoryClassName
The incrementer factory class name.
-
-
Constructor Detail
-
BaseCommonReturnValue
protected BaseCommonReturnValue()
-
BaseCommonReturnValue
protected BaseCommonReturnValue(CommonReturnValue returnValue, JRBaseObjectFactory factory)
-
-
Method Detail
-
getToVariable
public java.lang.String getToVariable()
Returns the name of the report variable where the value should be copied.- Specified by:
getToVariablein interfaceCommonReturnValue- Returns:
- the name of the report variable where the value should be copied.
-
getCalculation
public CalculationEnum getCalculation()
Returns the calculation type.When copying the returned value, a formula can be applied such that sum, maximum, average and so on can be computed.
- Specified by:
getCalculationin interfaceCommonReturnValue- Returns:
- the calculation type.
-
getIncrementerFactoryClassName
public java.lang.String getIncrementerFactoryClassName()
Returns the incrementer factory class name.The factory will be used to increment the value of the report variable with the returned value.
- Specified by:
getIncrementerFactoryClassNamein interfaceCommonReturnValue- Returns:
- the incrementer factory class name.
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classjava.lang.Object
-
-