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) int
getParameterDescription
(int position, Locale locale) getParameterDisplayName
(int position, Locale locale) getParameterType
(int position) Returns the parameter type at the given position using the function metadata.boolean
boolean
isParameterMandatory
(int position) Defines, whether the parameter at the given position is mandatory.boolean
-
Constructor Details
-
DefaultFunctionDescription
-
-
Method Details
-
getCanonicalName
- Specified by:
getCanonicalName
in interfaceFunctionDescription
-
getValueType
- Specified by:
getValueType
in interfaceFunctionDescription
-
getCategory
- Specified by:
getCategory
in interfaceFunctionDescription
-
getParameterCount
public int getParameterCount()- Specified by:
getParameterCount
in interfaceFunctionDescription
-
getParameterType
Description copied from interface:FunctionDescription
Returns the parameter type at the given position using the function metadata. The first parameter is at the position 0;- Specified by:
getParameterType
in 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:
isParameterMandatory
in interfaceFunctionDescription
- Returns:
-
getDisplayName
- Specified by:
getDisplayName
in interfaceFunctionDescription
-
getDescription
- Specified by:
getDescription
in interfaceFunctionDescription
-
isVolatile
public boolean isVolatile()- Specified by:
isVolatile
in interfaceFunctionDescription
-
isInfiniteParameterCount
public boolean isInfiniteParameterCount()- Specified by:
isInfiniteParameterCount
in interfaceFunctionDescription
-
getParameterDisplayName
- Specified by:
getParameterDisplayName
in interfaceFunctionDescription
-
getParameterDescription
- Specified by:
getParameterDescription
in 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:
getDefaultValue
in interfaceFunctionDescription
- Parameters:
position
-- Returns:
-