Class FormulaParameter
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.extensions.datasources.kettle.FormulaParameter
-
- All Implemented Interfaces:
Serializable
public class FormulaParameter extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormulaParameter(String name, String formula)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
compute(org.pentaho.reporting.libraries.formula.FormulaContext formulaContext)
static FormulaParameter[]
convert(org.pentaho.reporting.engine.classic.core.ParameterMapping[] definedVariableNames)
Maps the legacy parameter mapping into the new formula based system.static org.pentaho.reporting.engine.classic.core.ParameterMapping[]
convert(FormulaParameter[] args)
static FormulaParameter
create(String reportFieldName, String transformationParameterName)
boolean
equals(Object o)
String
getFormula()
String
getName()
String[]
getReferencedFields()
int
hashCode()
-
-
-
Method Detail
-
getName
public String getName()
-
getFormula
public String getFormula()
-
convert
public static FormulaParameter[] convert(org.pentaho.reporting.engine.classic.core.ParameterMapping[] definedVariableNames)
Maps the legacy parameter mapping into the new formula based system. ParameterMapping#getName returns the report's datarow-column name (source) and ParameterMapping#getAlias returns the target parameter in the transformation.- Parameters:
definedVariableNames
-- Returns:
-
create
public static FormulaParameter create(String reportFieldName, String transformationParameterName)
-
convert
public static org.pentaho.reporting.engine.classic.core.ParameterMapping[] convert(FormulaParameter[] args)
-
getReferencedFields
public String[] getReferencedFields() throws org.pentaho.reporting.libraries.formula.parser.ParseException
- Throws:
org.pentaho.reporting.libraries.formula.parser.ParseException
-
compute
public Object compute(org.pentaho.reporting.libraries.formula.FormulaContext formulaContext) throws org.pentaho.reporting.libraries.formula.EvaluationException, org.pentaho.reporting.libraries.formula.parser.ParseException
- Throws:
org.pentaho.reporting.libraries.formula.EvaluationException
org.pentaho.reporting.libraries.formula.parser.ParseException
-
-