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