restoreState(element);
}
public void restoreState(Element element) throws ReportException {
MathExpressionGeneric aValue;
Element child = element.getChild(MathExpressionGeneric.TAG);
if(child != null) {
aValue = new MathExpressionGeneric(child, context);
} else {
aValue = new MathExpressionGeneric(context);
}
AggregateFunction aFunction = null;
String mnemonic = getStringAttribute(element, ATTR_FUNC, null, false);
if(mnemonic == null) {
aFunction = AggregateFunction.ASIS;
} else {
aFunction = context.getAggregFunction(mnemonic, aValue.getCls());
}
style = new StyleAdaptor(element).getStyle();
value = aValue;
function = aFunction;