Class JRBaseSubreportReturnValue

    • Field Detail

      • subreportVariable

        protected String subreportVariable
        The name of the subreport variable to be copied.
      • toVariable

        protected String toVariable
        The name of the master variable where the value should be copied.
      • incrementerFactoryClassName

        protected String incrementerFactoryClassName
        The incrementer factory class name.
    • Constructor Detail

      • JRBaseSubreportReturnValue

        protected JRBaseSubreportReturnValue()
    • Method Detail

      • getFromVariable

        public String getFromVariable()
        Returns the name of the variable whose value should be copied.
        Specified by:
        getFromVariable in interface VariableReturnValue
        Returns:
        the name of the variable whose value should be copied.
      • getToVariable

        public String getToVariable()
        Returns the name of the master report variable where the value should be copied.
        Specified by:
        getToVariable in interface CommonReturnValue
        Returns:
        the name of the master report variable where the value should be copied.
      • getCalculation

        public CalculationEnum getCalculation()
        Returns the calculation type.

        When copying the value from the subreport, a formula can be applied such that sum, maximum, average and so on can be computed.

        Specified by:
        getCalculation in interface CommonReturnValue
        Returns:
        the calculation type.
      • getIncrementerFactoryClassName

        public String getIncrementerFactoryClassName()
        Returns the incrementer factory class name.

        The factory will be used to increment the value of the master report variable with the value from the subreport.

        Specified by:
        getIncrementerFactoryClassName in interface CommonReturnValue
        Returns:
        the incrementer factory class name.