@Override public T addRejectCheck(RejectAttributeChecker rejectChecker, String... rejectedAttributes) { for (String attribute : rejectedAttributes) { registry.addAttributeCheck(attribute, rejectChecker); } return thisBuilder(); }
@Override public T addRejectCheck( final RejectAttributeChecker checker, final AttributeDefinition... rejectedAttributes) { for (AttributeDefinition attribute : rejectedAttributes) { String attrName = getAttributeName(attribute); registry.addAttributeCheck(attrName, checker); } return thisBuilder(); }