org.jfree.formula.function.text

Class TrimFunction

Implemented Interfaces:
Function, Serializable

public class TrimFunction
extends java.lang.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

TypeValuePair
evaluate(FormulaContext context, ParameterCallback parameters)
String
getCanonicalName()

Constructor Details

TrimFunction

public TrimFunction()

Method Details

evaluate

public TypeValuePair evaluate(FormulaContext context,
                              ParameterCallback parameters)
            throws EvaluationException
Specified by:
evaluate in interface Function

getCanonicalName

public String getCanonicalName()
Specified by:
getCanonicalName in interface Function