1 12 package org.openbravo.xmlEngine; 13 14 import java.text.DecimalFormat ; 15 16 import org.apache.log4j.Logger ; 17 18 class FunctionAddTemplate extends FunctionTemplate { 19 20 static Logger log4jFunctionAddTemplate = Logger.getLogger(FunctionAddTemplate.class); 21 22 public FunctionAddTemplate(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 log4jFunctionAddTemplate.info("New FunctionAddValue"); 32 functionValue = new FunctionAddValue(this, xmlDocument); 33 } 34 return functionValue; 35 } 36 37 } 38 | Popular Tags |