@Named @Singleton public class InvoiceValidator extends java.lang.Object
Validates the invoice against the declared invoice profile.
Constructor and Description |
---|
InvoiceValidator()
Instantiates a new default invoice validator, based on the Bean Validation provider
|
InvoiceValidator(javax.validation.Validator validator)
Instantiates a new invoice validator.
|
InvoiceValidator(javax.validation.Validator validator,
MonetarySummationValidator monetarySummationValidator)
Instantiates a new invoice validator.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?>[] |
resolveIntoValidationGroups(ConformanceLevel conformanceLevel)
Resolve the given profile into bean validation groups.
|
java.util.Set<javax.validation.ConstraintViolation<Invoice>> |
validate(Invoice invoice)
Validate the invoice
|
public InvoiceValidator()
Instantiates a new default invoice validator, based on the Bean Validation provider
public InvoiceValidator(javax.validation.Validator validator)
Instantiates a new invoice validator.
validator
- the validator@Inject public InvoiceValidator(javax.validation.Validator validator, MonetarySummationValidator monetarySummationValidator)
Instantiates a new invoice validator.
validator
- the validatormonetarySummationValidator
- public static java.lang.Class<?>[] resolveIntoValidationGroups(ConformanceLevel conformanceLevel)
Resolve the given profile into bean validation groups.
conformanceLevel
- the given profileCopyright © 2014-2018 Konik.io. All Rights Reserved.