public class MonetarySummationValidator extends java.lang.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(java.lang.Class<?> clazz,
java.lang.String methodName,
java.util.List<java.lang.Class<?>> validationGroups)
Checks if given method belongs to the validation groups profile.
|
java.util.Set<javax.validation.ConstraintViolation<Invoice>> |
validate(Invoice invoice,
java.lang.Class<?>[] validationGroups) |
public MonetarySummationValidator(javax.validation.MessageInterpolator messageInterpolator)
messageInterpolator
- public static boolean belongsToProfile(java.lang.Class<?> clazz, java.lang.String methodName, java.util.List<java.lang.Class<?>> validationGroups)
Checks if given method belongs to the validation groups profile.
clazz
- methodName
- validationGroups
- Copyright © 2014-2018 Konik.io. All Rights Reserved.