Class StaticDataSource

    • Constructor Detail

      • StaticDataSource

        public StaticDataSource()
        Default constructor.
      • StaticDataSource

        public StaticDataSource​(Object o)
        Constructs a new static data source.
        Parameters:
        o - The value.
    • Method Detail

      • setValue

        public void setValue​(Object o)
        Sets the value of the data source.
        Parameters:
        o - The value.
      • getValue

        public Object getValue()
        Returns the value set in this datasource. This method exists to make the value-property beanified.
        Returns:
        the value.
      • getValue

        public Object getValue​(ExpressionRuntime runtime,
                               ReportElement element)
        Returns the value of the data source.
        Specified by:
        getValue in interface DataSource
        Parameters:
        runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.
        element -
        Returns:
        The value.