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

org.chobit.commons.validation.WholeCheckValidator Maven / Gradle / Ivy

There is a newer version: 0.1.3.4
Show newest version
package org.chobit.commons.validation;


import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;
import org.chobit.commons.contract.Checkable;

/**
 * 整体检查验证
 *
 * @author robin
 */
public class WholeCheckValidator implements ConstraintValidator {


    @Override
    public void initialize(WholeCheck anno) {
    }


    @Override
    public boolean isValid(Checkable checkableObj, ConstraintValidatorContext context) {
        return checkableObj.check();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy