1 24 package org.ofbiz.minilang.operation; 25 26 import java.util.*; 27 import org.w3c.dom.*; 28 29 36 public class CompareField extends BaseCompare { 37 38 String compareName; 39 40 public CompareField(Element element, SimpleMapProcess simpleMapProcess) { 41 super(element, simpleMapProcess); 42 this.compareName = element.getAttribute("field"); 43 } 44 45 public void exec(Map inMap, Map results, List messages, Locale locale, ClassLoader loader) { 46 Object compareValue = inMap.get(compareName); 47 Object fieldValue = inMap.get(fieldName); 48 49 doCompare(fieldValue, compareValue, messages, locale, loader); 50 } 51 } 52 | Popular Tags |