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

com.veeker.validation.annotations.PatternsInvalidImpl Maven / Gradle / Ivy

The newest version!
package com.veeker.validation.annotations;

import com.veeker.core.utils.StringUtils;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
 * @author :qiaoliang
 */
public class PatternsInvalidImpl implements ConstraintValidator {
    @Override
    public boolean isValid(Object o, ConstraintValidatorContext constraintValidatorContext) {
        return StringUtils.matchDomain(o.toString().trim());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy