/** * @return the condition */ public String getCondition() { if (condition == null) return ""; return condition.toString(); }
public boolean matches(Data item) throws Exception { if(condition==null) return true; final Boolean b= condition.get(context, item); if(b == null) return true; return b; }
private Expression<String> createOrBuildStringExpression(String key) { Expression<String> e = sExps.get(key); if (e == null) { Expression<Double> d = dExps.get(key); if (d != null) key = "%{" + d.getExpression() + "}"; e = new StringExpression(key); } return e; }
/** * Create equals-true-condition out of a given string expression. * * @param expr expression value as string * @return condition */ private Condition extractEqualsTrueExpression(String expr) { Expression<Double> de = dExps.get(expr); if (de != null) { return new EqualsTrueCondition(new BooleanExpression(de.getExpression())); } return null; }
/** * Create equals-false-condition out of a given string expression. * * @param expr expression value as string * @return condition */ private Condition extractEqualsFalseExpression(String expr) { Expression<Double> de = dExps.get(expr); if (de != null) { return new EqualsFalseCondition(new BooleanExpression(de.getExpression())); } return null; }
@Override public Boolean get(Context ctx, Data item) throws Exception { Boolean b = exp.get(ctx, item); if (b == null) return null; return b == false; } }
public boolean matches(Data item) throws Exception { if (condition == null) return true; final Boolean b = condition.get(context, item); if (b == null) return false; return b; }
/** * @return the condition */ public String getCondition() { if (condition == null) return ""; return condition.toString(); }
public boolean matches(Data item) throws Exception { if (condition == null) return false; final Boolean b = condition.get(context, item); if (b == null) return false; return b; }
/** * @return the condition */ public String getCondition() { if (condition == null) return ""; return condition.toString(); }
public boolean matches(Data item) throws Exception { if (condition == null) return true; final Boolean result = condition.get(context, item); if (result == null) return true; return result; }
/** * @return the condition */ public String getCondition() { if (condition == null) return ""; return condition.toString(); }
@Override public Boolean get(Context ctx, Data item) throws Exception { Boolean b = exp.get(ctx, item); if (b == null) return null; return b == true; } }