if (attr.getConstraints() != null && attr.getConstraints().size() > 0) { validateConstraints(false, attr.getConstraints(), name, attributes.get(name), errors); continue; Set<Constraint> constraintList = attribute.getConstraints(); if (constraintList != null && constraintList.size() > 0) { validateConstraints(true, constraintList, entry.getKey(), ThreadContext.get(entry.getKey()), errors);
Set<Constraint> constraints = attribute.getConstraints(); boolean first = true; if (attribute.isRequired() || eventAttribute.isRequired()) { reqCtx.append(", ").append(REQUIRED_ATTR); Set<Constraint> constraints = entry.getValue().getConstraints(); if (constraints != null && constraints.size() > 0) { anyConstraints = true;
Map<Long, ConstraintModel> constraintMap = constraintModels.stream().collect(Collectors.toMap(ConstraintModel::getId, Function.identity())); if (attribute.getConstraints() != null) { constraintModels.removeIf(a -> attribute.getConstraints().stream().noneMatch(b -> b.getId().equals(a.getId()))); for (Constraint constraint : attribute.getConstraints()) { ConstraintModel constraintModel; if (constraint.getId() != null) {