@Named @Singleton public class InvoiceValidator extends Object
Validates the invoice against the declared invoice profile.
| Constructor and Description |
|---|
InvoiceValidator(javax.validation.Validator validator)
|
| Modifier and Type | Method and Description |
|---|---|
static Class<?>[] |
resolveIntoValidationGroups(ConformanceLevel conformanceLevel)
|
Set<javax.validation.ConstraintViolation<Invoice>> |
validate(Invoice invoice)
|
@Inject public InvoiceValidator(javax.validation.Validator validator)
Instantiates a new invoice validator.
validator - the validatorpublic static Class<?>[] resolveIntoValidationGroups(ConformanceLevel conformanceLevel)
Resolve the given profile into bean validation groups.
conformanceLevel - the given profileCopyright © 2014 Konik.io. All Rights Reserved.