*/
public Object createObject(Attributes atts)
{
JRDesignVariable variable = (JRDesignVariable)digester.peek();
JRDesignExpression expression = new JRDesignExpression();
if (
variable.getCalculationValue() == CalculationEnum.COUNT
|| variable.getCalculationValue() == CalculationEnum.DISTINCT_COUNT
)
{
expression.setValueClassName(java.lang.Object.class.getName());
}
else
{
expression.setValueClassName(variable.getValueClassName());
}
return expression;
}