org.pentaho.reporting.libraries.formula.function.information

Class ChooseFunction

public class ChooseFunction extends Object implements Function

This function uses an index to return a value from a list of values. The first value index is 1, 2 for the second and so on.

Author: Cedric Pronzato

Constructor Summary
ChooseFunction()
Method Summary
TypeValuePairevaluate(FormulaContext context, ParameterCallback parameters)
StringgetCanonicalName()

Constructor Detail

ChooseFunction

public ChooseFunction()

Method Detail

evaluate

public TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters)

getCanonicalName

public String getCanonicalName()