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

org.eweb4j.mvc.validator.IntegerValidator Maven / Gradle / Ivy

The newest version!
package org.eweb4j.mvc.validator;

import org.eweb4j.mvc.Context;
import org.eweb4j.mvc.action.Validation;
import org.eweb4j.mvc.config.bean.ValidatorConfigBean;
import org.eweb4j.util.RegexList;

/**
 * 对数字的验证
 * @author cfuture.aw
 *
 */
public class IntegerValidator implements ValidatorIF {

	public Validation validate(ValidatorConfigBean val, Context context) {
		return new ValidatorHelper(RegexList.integer_regexp).validate(val, context);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy