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