Пример #1
0
 @Override
 public void evalAction(IElementValue context, String rule) {
   ArrayList<Exception> lex = new ArrayList<Exception>();
   eval(context, rule, lex);
   if (0 < lex.size()) {
     throw new MdmiException(lex.get(0), "evalAction({0}, {1}) fails!", context.toString(), rule);
   }
 }
Пример #2
0
 @Override
 public boolean evalConstraint(IElementValue context, String rule) {
   ArrayList<Exception> lex = new ArrayList<Exception>();
   boolean ret = eval(context, rule, lex);
   if (0 < lex.size()) {
     throw new MdmiException(
         lex.get(0), "evalConstraint({0}, {1}) fails!", context.toString(), rule);
   }
   return ret;
 }