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