JRHyperlink hyperlink,
JRFillExpressionEvaluator expressionEvaluator,
byte evaluationType) throws JRException
{
JRHyperlinkParameter[] hyperlinkParameters = hyperlink.getHyperlinkParameters();
JRPrintHyperlinkParameters printParameters;
if (hyperlinkParameters == null)
{
printParameters = null;
}
else
{
printParameters = new JRPrintHyperlinkParameters();
for (int i = 0; i < hyperlinkParameters.length; i++)
{
JRHyperlinkParameter hyperlinkParameter = hyperlinkParameters[i];
JRExpression valueExpression = hyperlinkParameter.getValueExpression();
Class valueClass;
Object value;
if (valueExpression == null)
{
value = null;
valueClass = Object.class;
}
else
{
value = expressionEvaluator.evaluate(valueExpression, evaluationType);
valueClass = valueExpression.getValueClass();
}
JRPrintHyperlinkParameter printParam = new JRPrintHyperlinkParameter(hyperlinkParameter.getName(), valueClass.getName(), value);
printParameters.addParameter(printParam);
}
}
return printParameters;
}