@Test public void convert_formula_parameter_to_parameter_mapping_4() { FormulaParameter fp1 = new FormulaParameter( "par1", "=CONCATENATE([GUID]; \"Hello world!\"; [GUIH])" ); ParameterMapping[] actualResult = FormulaParameter.convert( new FormulaParameter[] { fp1} ); }
public static FormulaParameter[] convert( final ParameterMapping[] definedVariableNames ) { final FormulaParameter[] args = new FormulaParameter[ definedVariableNames.length ]; for ( int i = 0; i < definedVariableNames.length; i++ ) { ParameterMapping definedArgumentName = definedVariableNames[ i ]; String formula = '=' + FormulaUtil.quoteReference( definedArgumentName.getName() ); args[ i ] = new FormulaParameter( definedArgumentName.getAlias(), formula ); } return args; }
FormulaParameter implements Serializable { public static FormulaParameter[] convert( final ParameterMapping[] definedVariableNames ) { final FormulaParameter[] args = new FormulaParameter[ definedVariableNames.length ]; for ( int i = 0; i < definedVariableNames.length; i++ ) { ParameterMapping definedArgumentName = definedVariableNames[ i ]; String formula = '=' + FormulaUtil.quoteReference( definedArgumentName.getName() ); args[ i ] = new FormulaParameter( definedArgumentName.getAlias(), formula ); } return args; } }
FormulaParameter implements Serializable { public static FormulaParameter[] convert( final ParameterMapping[] definedVariableNames ) { final FormulaParameter[] args = new FormulaParameter[ definedVariableNames.length ]; for ( int i = 0; i < definedVariableNames.length; i++ ) { ParameterMapping definedArgumentName = definedVariableNames[ i ]; String formula = '=' + FormulaUtil.quoteReference( definedArgumentName.getName() ); args[ i ] = new FormulaParameter( definedArgumentName.getAlias(), formula ); } return args; } FormulaParameter( final String name, final String formula ); }
FormulaParameter implements Serializable { public static FormulaParameter[] convert( final ParameterMapping[] definedVariableNames ) { final FormulaParameter[] args = new FormulaParameter[ definedVariableNames.length ]; for ( int i = 0; i < definedVariableNames.length; i++ ) { ParameterMapping definedArgumentName = definedVariableNames[ i ]; String formula = '=' + FormulaUtil.quoteReference( definedArgumentName.getName() ); args[ i ] = new FormulaParameter( definedArgumentName.getAlias(), formula ); } return args; } FormulaParameter( final String name, final String formula ); String getName(); String getFormula(); static FormulaParameter[] convert( final ParameterMapping[] definedVariableNames ); static FormulaParameter create( final String reportFieldName, final String transformationParameterName ); static ParameterMapping[] convert( final FormulaParameter[] args ); boolean equals( final Object o ); int hashCode(); String[] getReferencedFields(); Object compute( final FormulaContext formulaContext ); }
FormulaParameter implements Serializable { public static FormulaParameter[] convert( final ParameterMapping[] definedVariableNames ) { final FormulaParameter[] args = new FormulaParameter[ definedVariableNames.length ]; for ( int i = 0; i < definedVariableNames.length; i++ ) { ParameterMapping definedArgumentName = definedVariableNames[ i ]; String formula = '=' + FormulaUtil.quoteReference( definedArgumentName.getName() ); args[ i ] = new FormulaParameter( definedArgumentName.getAlias(), formula ); } return args; } FormulaParameter( final String name, final String formula ); String getName(); String getFormula(); static FormulaParameter[] convert( final ParameterMapping[] definedVariableNames ); static FormulaParameter create( final String reportFieldName, final String transformationParameterName ); static ParameterMapping[] convert( final FormulaParameter[] args ); boolean equals( final Object o ); int hashCode(); String[] getReferencedFields(); Object compute( final FormulaContext formulaContext );  }