Class DefaultFunctionDescription
java.lang.Object
org.pentaho.reporting.libraries.formula.function.DefaultFunctionDescription
- All Implemented Interfaces:
Serializable,FunctionDescription
Creation-Date: 05.11.2006, 15:13:03
- Author:
- Thomas Morgner
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultValue(int position) Returns the default value for an optional parameter.getDescription(Locale locale) getDisplayName(Locale locale) intgetParameterDescription(int position, Locale locale) getParameterDisplayName(int position, Locale locale) getParameterType(int position) Returns the parameter type at the given position using the function metadata.booleanbooleanisParameterMandatory(int position) Defines, whether the parameter at the given position is mandatory.boolean
-
Constructor Details
-
DefaultFunctionDescription
-
-
Method Details
-
getCanonicalName
- Specified by:
getCanonicalNamein interfaceFunctionDescription
-
getValueType
- Specified by:
getValueTypein interfaceFunctionDescription
-
getCategory
- Specified by:
getCategoryin interfaceFunctionDescription
-
getParameterCount
public int getParameterCount()- Specified by:
getParameterCountin interfaceFunctionDescription
-
getParameterType
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
- Specified by:
getDisplayNamein interfaceFunctionDescription
-
getDescription
- Specified by:
getDescriptionin interfaceFunctionDescription
-
isVolatile
public boolean isVolatile()- Specified by:
isVolatilein interfaceFunctionDescription
-
isInfiniteParameterCount
public boolean isInfiniteParameterCount()- Specified by:
isInfiniteParameterCountin interfaceFunctionDescription
-
getParameterDisplayName
- Specified by:
getParameterDisplayNamein interfaceFunctionDescription
-
getParameterDescription
- Specified by:
getParameterDescriptionin interfaceFunctionDescription
-
getDefaultValue
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:
-