org.pentaho.reporting.libraries.formula.function.information

Class CountAFunctionDescription

public class CountAFunctionDescription extends AbstractFunctionDescription

Describes the CountFunction function.

Author: Cedric Pronzato

See Also: CountFunction

Constructor Summary
CountAFunctionDescription()
Method Summary
FunctionCategorygetCategory()
intgetParameterCount()
TypegetParameterType(int position)
Returns the parameter type at the given position using the function metadata.
TypegetValueType()
booleanisInfiniteParameterCount()
booleanisParameterMandatory(int position)
Defines, whether the parameter at the given position is mandatory.

Constructor Detail

CountAFunctionDescription

public CountAFunctionDescription()

Method Detail

getCategory

public FunctionCategory getCategory()

getParameterCount

public int getParameterCount()

getParameterType

public Type getParameterType(int position)
Returns the parameter type at the given position using the function metadata. The first parameter is at the position 0;

Parameters: position The parameter index.

Returns: The parameter type.

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: