@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.
|
| 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
@Inject public InvoiceValidator(javax.validation.Validator validator)
Instantiates a new invoice validator.
validator - the validatorpublic static java.lang.Class<?>[] resolveIntoValidationGroups(ConformanceLevel conformanceLevel)
Resolve the given profile into bean validation groups.
conformanceLevel - the given profileCopyright © 2014-2015 Konik.io. All Rights Reserved.