Have FlexibleMapAccessor and FlexibleStringExpander implement IsEmpty so they can be evaluated by the various validation utilities.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -23,6 +23,7 @@ import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import javax.el.PropertyNotFoundException;
|
||||
|
||||
import org.ofbiz.base.lang.IsEmpty;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.Debug;
|
||||
import org.ofbiz.base.util.UtilGenerics;
|
||||
@@ -39,7 +40,7 @@ import org.ofbiz.base.util.string.UelUtil;
|
||||
*/
|
||||
@SourceMonitored
|
||||
@SuppressWarnings("serial")
|
||||
public class FlexibleMapAccessor<T> implements Serializable {
|
||||
public class FlexibleMapAccessor<T> implements Serializable, IsEmpty {
|
||||
public static final String module = FlexibleMapAccessor.class.getName();
|
||||
protected static final UtilCache<String, FlexibleMapAccessor<?>> fmaCache = UtilCache.createUtilCache("flexibleMapAccessor.ExpressionCache");
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
@@ -27,6 +27,7 @@ import java.util.TimeZone;
|
||||
|
||||
import javax.el.PropertyNotFoundException;
|
||||
|
||||
import org.ofbiz.base.lang.IsEmpty;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.BshUtil;
|
||||
import org.ofbiz.base.util.Debug;
|
||||
@@ -52,7 +53,7 @@ import bsh.EvalError;
|
||||
*/
|
||||
@SourceMonitored
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class FlexibleStringExpander implements Serializable {
|
||||
public abstract class FlexibleStringExpander implements Serializable, IsEmpty {
|
||||
|
||||
public static final String module = FlexibleStringExpander.class.getName();
|
||||
public static final String openBracket = "${";
|
||||
|
||||
Reference in New Issue
Block a user