public class ValidFinancialAccountValidator extends java.lang.Object implements javax.validation.ConstraintValidator<ValidFinancialAccount,FinancialAccount>
The Valid Financial Account Validator will check if a Financial Account
has a not empty FinancialAccount.getIban()
or FinancialAccount.getProprietaryId()
.
Constructor and Description |
---|
ValidFinancialAccountValidator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(ValidFinancialAccount constraintAnnotation)
Initialize.
|
boolean |
isValid(FinancialAccount account,
javax.validation.ConstraintValidatorContext context)
Checks if is valid.
|
public ValidFinancialAccountValidator()
public void initialize(ValidFinancialAccount constraintAnnotation)
Initialize.
initialize
in interface javax.validation.ConstraintValidator<ValidFinancialAccount,FinancialAccount>
constraintAnnotation
- the constraint annotationpublic boolean isValid(FinancialAccount account, javax.validation.ConstraintValidatorContext context)
Checks if is valid.
isValid
in interface javax.validation.ConstraintValidator<ValidFinancialAccount,FinancialAccount>
contact
- the contactcontext
- the contextCopyright © 2014-2018 Konik.io. All Rights Reserved.