@Override public List<Constraint<String>> getConstraints() { return wrapped.getConstraints(); }
@Override public List<Constraint<String>> getConstraints() { return wrapped.getConstraints(); }
Iterator<Constraint<String>> iterator = store.get(group.getName()).getConstraints().iterator(); while (iterator.hasNext())
Iterator<Constraint<String>> iterator = store.get(group.getName()).getConstraints().iterator(); while (iterator.hasNext())
@Override public boolean isValid(Rewrite event, EvaluationContext context, Parameter<?> param, String value) { Assert.notNull(event, "Rewrite event must not be null."); Assert.notNull(context, "EvaluationContext must not be null."); Assert.notNull(param, "Parameter must not be null."); String stored = map.get(param); boolean result = false; if (_doParameterProviderValidation(event, context, param, value)) { result = true; } else if (stored == value || (stored != null && stored.equals(value))) { result = true; } else if (stored == null) { result = true; for (Constraint<String> constraint : param.getConstraints()) { if (!constraint.isSatisfiedBy(event, context, value)) { result = false; } } } return result; }
@Override public boolean isValid(Rewrite event, EvaluationContext context, Parameter<?> param, String value) { Assert.notNull(event, "Rewrite event must not be null."); Assert.notNull(context, "EvaluationContext must not be null."); Assert.notNull(param, "Parameter must not be null."); String stored = map.get(param); boolean result = false; if (_doParameterProviderValidation(event, context, param, value)) { result = true; } else if (stored == value || (stored != null && stored.equals(value))) { result = true; } else if (stored == null) { result = true; for (Constraint<String> constraint : param.getConstraints()) { if (!constraint.isSatisfiedBy(event, context, value)) { result = false; } } } return result; }
for (Constraint<?> constraint : parameter.getConstraints()) { if (!parentParam.getConstraints().contains(constraint)) throwRedefinitionError(rule, name);
for (Constraint<?> constraint : parameter.getConstraints()) { if (!parentParam.getConstraints().contains(constraint)) throwRedefinitionError(rule, name);
for (Constraint<String> constraint : parameter.getConstraints()) if (!parentParam.getConstraints().contains(constraint)) throwRedefinitionError(rule, name);
for (Constraint<String> constraint : parameter.getConstraints()) if (!parentParam.getConstraints().contains(constraint)) throwRedefinitionError(rule, name);