1 12 package org.openbravo.xmlEngine; 13 14 import java.text.DecimalFormat ; 15 16 import org.apache.log4j.Logger ; 17 18 class FunctionMaxTemplate extends FunctionTemplate { 19 20 static Logger log4jFunctionMaxTemplate = Logger.getLogger(FunctionMaxTemplate.class); 21 22 public FunctionMaxTemplate(String fieldName, DecimalFormat formatOutput, DecimalFormat formatSimple, 23 DataTemplate dataTemplate, 24 XmlComponentTemplate arg1, XmlComponentTemplate arg2) { 25 super(fieldName, formatOutput, formatSimple, dataTemplate, arg1, arg2); 26 } 27 28 public FunctionValue createFunctionValue(XmlDocument xmlDocument) { 29 FunctionValue functionValue = searchFunction(xmlDocument); 30 if (functionValue == null) { 31 log4jFunctionMaxTemplate.info("New FunctionMaxValue"); 32 functionValue = new FunctionMaxValue(this, xmlDocument); 33 } 34 return functionValue; 35 } 36 37 } 38 | Popular Tags |