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

ca.ibodrov.mica.api.validation.ValidNameValidator Maven / Gradle / Ivy

The newest version!
package ca.ibodrov.mica.api.validation;

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

public class ValidNameValidator implements ConstraintValidator {

    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {
        return value != null && !value.contains("//");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy