public class MonetarySummationValidator extends Object
Validates Invoice's MonetarySummation by comparing values after recalculating MonetarySummation
for the invoice and all line position items.
| Constructor and Description |
|---|
MonetarySummationValidator(javax.validation.MessageInterpolator messageInterpolator) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
belongsToProfile(Class<?> clazz,
String methodName,
List<Class<?>> validationGroups)
Checks if given method belongs to the validation groups profile.
|
Set<javax.validation.ConstraintViolation<Invoice>> |
validate(Invoice invoice,
Class<?>[] validationGroups) |
public MonetarySummationValidator(javax.validation.MessageInterpolator messageInterpolator)
messageInterpolator - public static boolean belongsToProfile(Class<?> clazz, String methodName, List<Class<?>> validationGroups)
Checks if given method belongs to the validation groups profile.
clazz - methodName - validationGroups - Copyright © 2014-2016 Konik.io. All Rights Reserved.