/*
 * This code is generated by blanco Framework.
 */
package blancostruts.runtime.validator;

import org.apache.struts.action.ActionError;

/**
 * @author Yasuo Nakanishi
 */
public interface FormValidator {

    public boolean validateRequired(Object value, String name);
    public boolean validateFormat(Object value, String format, String name);
    public boolean validateRegex(String value, String regex, String key, String name);

    public boolean validateIntRange(int value, String min, String max, String name);
    
    public boolean validateStringSizeByBytes(String value, String min, String max, String name);
    public boolean validateStringSizeByLength(String value, String min, String max, String name);

    public boolean dispathFormatValidation(Object value, String format, String name);
    public boolean isSupportedFormat(String format);
    public ActionError getError();
}
