public void saveState(Element root) {
if(function != AggregateFunction.ASIS) {
root.setAttribute(ATTR_FUNC, function.getMnemonic());
}
Element styleElement = new StyleAdaptor(style).toXML();
if(styleElement != null) {
root.addContent(styleElement);
}
if(!value.isEmpty()) {
root.addContent(value.toXML());