com.dream.template.validate.NotBlankValidator Maven / Gradle / Ivy
package com.dream.template.validate;
import java.util.Map;
public class NotBlankValidator implements Validator {
@Override
public String validate(String value, Map paramMap) {
if (value == null || value.trim().length() == 0) {
return (String) paramMap.get("msg");
}
return null;
}
}