Class FillFunctionContext

  • All Implemented Interfaces:
    FunctionContext

    public class FillFunctionContext
    extends java.lang.Object
    implements FunctionContext
    Author:
    Teodor Danciu (teodord@users.sourceforge.net)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getParameterValue​(java.lang.String parameterName)
      Returns the value of a parameter.
      java.lang.Object getParameterValue​(java.lang.String parameterName, boolean ignoreMissing)
      Returns the value of a parameter.
      protected java.util.Map<java.lang.String,​java.lang.Object> getParameterValuesMap()
      Returns the map of parameter values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EXCEPTION_MESSAGE_KEY_PARAMETER_NOT_FOUND

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_PARAMETER_NOT_FOUND
        See Also:
        Constant Field Values
    • Constructor Detail

      • FillFunctionContext

        public FillFunctionContext​(java.util.Map<java.lang.String,​JRFillParameter> parametersMap)
    • Method Detail

      • getParameterValue

        public java.lang.Object getParameterValue​(java.lang.String parameterName)
        Returns the value of a parameter.
        Specified by:
        getParameterValue in interface FunctionContext
        Parameters:
        parameterName - the parameter name
        Returns:
        the parameter value
      • getParameterValue

        public java.lang.Object getParameterValue​(java.lang.String parameterName,
                                                  boolean ignoreMissing)
        Returns the value of a parameter.
        Specified by:
        getParameterValue in interface FunctionContext
        Parameters:
        parameterName - the parameter name
        ignoreMissing - if set, null will be returned for inexisting parameters
        Returns:
        the parameter value
      • getParameterValuesMap

        protected java.util.Map<java.lang.String,​java.lang.Object> getParameterValuesMap()
        Returns the map of parameter values.
        Returns:
        the map of parameter values