Package net.sf.jasperreports.engine.base
Class BaseCommonReturnValue
java.lang.Object
net.sf.jasperreports.engine.base.BaseCommonReturnValue
- All Implemented Interfaces:
Serializable,Cloneable,CommonReturnValue,JRCloneable
- Direct Known Subclasses:
BaseExpressionReturnValue,BaseReturnValue,DesignCommonReturnValue
Base implementation of
CommonReturnValue.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CalculationEnumThe calculation type.protected StringThe incrementer factory class name.protected StringThe name of the variable where the value should be copied. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedBaseCommonReturnValue(CommonReturnValue returnValue, JRBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the calculation type.Returns the incrementer factory class name.Returns the name of the report variable where the value should be copied.
-
Field Details
-
toVariable
The name of the variable where the value should be copied. -
calculation
The calculation type. -
incrementerFactoryClassName
The incrementer factory class name.
-
-
Constructor Details
-
BaseCommonReturnValue
protected BaseCommonReturnValue() -
BaseCommonReturnValue
-
-
Method Details
-
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
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
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
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-