org.pentaho.reporting.libraries.formula.function.text

Class TrimFunction

public class TrimFunction extends Object implements Function

This function returns the given text free of leading spaces. Removes all leading and trailing spaces and all extra spaces inside the text.

Author: Cedric Pronzato

See Also: http://mercury.ccil.org/%7Ecowan/OF/textfuncs.html

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

Constructor Detail

TrimFunction

public TrimFunction()

Method Detail

evaluate

public TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters)

getCanonicalName

public String getCanonicalName()