Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 12 package org.openbravo.xmlEngine; 13 14 import org.apache.log4j.Logger ; 15 16 class FunctionLtValue extends FunctionEvaluationValue { 17 18 static Logger log4jFunctionLtValue = Logger.getLogger(FunctionLtValue.class); 19 20 public FunctionLtValue(FunctionTemplate functionTemplate, XmlDocument xmlDocument) { 21 super(functionTemplate, xmlDocument); 22 } 23 24 public String print() { 25 log4jFunctionLtValue.debug("Arg1: " + arg1Value.printSimple() + " Arg2: " + arg2Value.printSimple()); 26 if (arg1Value.print().equals(XmlEngine.strTextDividedByZero) || arg2Value.print().equals(XmlEngine.strTextDividedByZero)) { 27 return XmlEngine.strTextDividedByZero; 28 } else { 29 if (Double.valueOf(arg1Value.printSimple()).doubleValue() < Double.valueOf(arg2Value.printSimple()).doubleValue()) { 30 return "1"; 31 } else { 32 return "0"; 33 } 34 } 35 } 36 37 public String printSimple() { 38 return print(); 39 } 40 41 } 42
| Popular Tags
|