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 FunctionAddValue extends FunctionEvaluationValue { 17 18 static Logger log4jFunctionAddValue = Logger.getLogger(FunctionAddValue.class); 19 20 public FunctionAddValue(FunctionTemplate functionTemplate, XmlDocument xmlDocument) { 21 super(functionTemplate, xmlDocument); 22 } 23 24 public String print() { 25 if (arg1Value.printSimple().equals(XmlEngine.strTextDividedByZero) || arg2Value.printSimple().equals(XmlEngine.strTextDividedByZero)) { 26 return XmlEngine.strTextDividedByZero; 27 } else { 28 return functionTemplate.printFormatOutput(Double.valueOf(arg1Value.printSimple()).doubleValue() + Double.valueOf(arg2Value.printSimple()).doubleValue()); 29 } 30 } 31 32 public String printSimple() { 33 if (arg1Value.printSimple().equals(XmlEngine.strTextDividedByZero) || arg2Value.printSimple().equals(XmlEngine.strTextDividedByZero)) { 34 return XmlEngine.strTextDividedByZero; 35 } else { 36 return functionTemplate.printFormatSimple(Double.valueOf(arg1Value.printSimple()).doubleValue() + Double.valueOf(arg2Value.printSimple()).doubleValue()); 37 } 38 } 39 40 } 41
| Popular Tags
|