public String getConstraintMessage(EvaluationContext ec, FormInstance instance) { if (xPathConstraintMsg == null) { return(constraintMsg); } else { try { Object value = xPathConstraintMsg.eval(instance, ec); if (value != null) { return((String)value); } return(null); } catch (Exception e) { Logger.exception("Error evaluating a valid-looking constraint xpath ", e); return(constraintMsg); } } }
public Object evalRaw(FormInstance model, EvaluationContext evalContext) { return(XPathFuncExpr.unpack(expr.eval(model, evalContext))); }