/** * The filter "{0}" is not recognized; try one of {1}. */ public String msgUnrecognizedFilterKey(String filterKey, Collection<String> filterKeys) { return this.format("The filter \"{0}\" is not recognized; try one of {1}.", filterKey, filterKeys); }
void process(BpelEventFilter f, Restriction<String> r) { try { f._tstampRestrictions.add(new Restriction<Date>(r.originalKey, r.op, ISO8601DateParser.parse(r.value))); } catch (ParseException e) { String errmsg = __msgs.msgISODateParseErr(TIMESTAMP.name(), r.value); throw new IllegalArgumentException(errmsg, e); } } };
public void init(String filter) { if (filter != null) { Matcher expressionMatcher = __comparatorPattern.matcher(filter); while (expressionMatcher.find()) { String filterKey = expressionMatcher.group(1); String op = expressionMatcher.group(2); String value = expressionMatcher.group(3); FKEY keyval; try { keyval = parseKey(filterKey.toUpperCase().replaceAll("-", "_")); } catch (Exception ex) { String errmsg = __msgs.msgUnrecognizedFilterKey(filterKey, getFilterKeysStr()); throw new IllegalArgumentException(errmsg, ex); } Restriction<String> restriction = new Restriction<String>(filterKey,op,value); _criteria.put(keyval, restriction); process(keyval, restriction); } } }
/** * The restriction for filter "{0}" must follow the ISO-8601 date or date/time * standard (yyyyMMddhhmmss); "{1}" does not follow this form. */ public String msgISODateParseErr(String filterKey, String restriction) { return this.format("The restriction for filter \"{0}\" must follow the" + " ISO-8601 date or date/time standard (yyyyMMddhhmmss);" + "\"{1}\" does not follow this form.", filterKey, restriction); }