org.pentaho.reporting.libraries.formula.function

Class DefaultFunctionDescription

public class DefaultFunctionDescription extends Object implements FunctionDescription

Creation-Date: 05.11.2006, 15:13:03

Author: Thomas Morgner

Constructor Summary
DefaultFunctionDescription(String name)
Method Summary
StringgetCanonicalName()
FunctionCategorygetCategory()
ObjectgetDefaultValue(int position)
Returns the default value for an optional parameter.
StringgetDescription(Locale locale)
StringgetDisplayName(Locale locale)
intgetParameterCount()
StringgetParameterDescription(int position, Locale locale)
StringgetParameterDisplayName(int position, Locale locale)
TypegetParameterType(int position)
TypegetValueType()
booleanisInfiniteParameterCount()
booleanisParameterMandatory(int position)
Defines, whether the parameter at the given position is mandatory.
booleanisVolatile()

Constructor Detail

DefaultFunctionDescription

public DefaultFunctionDescription(String name)

Method Detail

getCanonicalName

public String getCanonicalName()

getCategory

public FunctionCategory getCategory()

getDefaultValue

public Object getDefaultValue(int position)
Returns the default value for an optional parameter. If the value returned here is null, then this either means, that the parameter is mandatory or that the default value is computed by the expression itself.

Parameters: position

Returns:

getDescription

public String getDescription(Locale locale)

getDisplayName

public String getDisplayName(Locale locale)

getParameterCount

public int getParameterCount()

getParameterDescription

public String getParameterDescription(int position, Locale locale)

getParameterDisplayName

public String getParameterDisplayName(int position, Locale locale)

getParameterType

public Type getParameterType(int position)

getValueType

public Type getValueType()

isInfiniteParameterCount

public boolean isInfiniteParameterCount()

isParameterMandatory

public boolean isParameterMandatory(int position)
Defines, whether the parameter at the given position is mandatory. A mandatory parameter must be filled in, while optional parameters need not to be filled in.

Returns:

isVolatile

public boolean isVolatile()