All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nls.validation.BankDetails Maven / Gradle / Ivy

The newest version!
package com.nls.validation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = BankDetailsValidator.class)
public @interface BankDetails {
    String sortCode();
    String accountNumber();

    String message() default "Invalid bank details";
    Class[] groups() default {};
    Class[] payload() default {};

    @Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
    @Retention(RetentionPolicy.RUNTIME)
    @Documented
    @interface List {
        BankDetails[] value();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy