Class DefaultFunctionDescription
- java.lang.Object
-
- org.pentaho.reporting.libraries.formula.function.DefaultFunctionDescription
-
- All Implemented Interfaces:
Serializable,FunctionDescription
public class DefaultFunctionDescription extends Object implements FunctionDescription
Creation-Date: 05.11.2006, 15:13:03- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultFunctionDescription(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)Returns the parameter type at the given position using the function metadata.TypegetValueType()booleanisDeprecated()booleanisExperimental()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()
- Specified by:
getCanonicalNamein interfaceFunctionDescription
-
getValueType
public Type getValueType()
- Specified by:
getValueTypein interfaceFunctionDescription
-
getCategory
public FunctionCategory getCategory()
- Specified by:
getCategoryin interfaceFunctionDescription
-
getParameterCount
public int getParameterCount()
- Specified by:
getParameterCountin interfaceFunctionDescription
-
getParameterType
public Type getParameterType(int position)
Description copied from interface:FunctionDescriptionReturns the parameter type at the given position using the function metadata. The first parameter is at the position 0;- Specified by:
getParameterTypein interfaceFunctionDescription- Parameters:
position- The parameter index.- Returns:
- The parameter type.
-
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.- Specified by:
isParameterMandatoryin interfaceFunctionDescription- Returns:
-
getDisplayName
public String getDisplayName(Locale locale)
- Specified by:
getDisplayNamein interfaceFunctionDescription
-
getDescription
public String getDescription(Locale locale)
- Specified by:
getDescriptionin interfaceFunctionDescription
-
isVolatile
public boolean isVolatile()
- Specified by:
isVolatilein interfaceFunctionDescription
-
isInfiniteParameterCount
public boolean isInfiniteParameterCount()
- Specified by:
isInfiniteParameterCountin interfaceFunctionDescription
-
getParameterDisplayName
public String getParameterDisplayName(int position, Locale locale)
- Specified by:
getParameterDisplayNamein interfaceFunctionDescription
-
getParameterDescription
public String getParameterDescription(int position, Locale locale)
- Specified by:
getParameterDescriptionin interfaceFunctionDescription
-
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.- Specified by:
getDefaultValuein interfaceFunctionDescription- Parameters:
position-- Returns:
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecatedin interfaceFunctionDescription
-
isExperimental
public boolean isExperimental()
- Specified by:
isExperimentalin interfaceFunctionDescription
-
-