1 7 package com.inversoft.util.typevalidator; 8 9 10 import java.util.Locale ; 11 12 import com.inversoft.beans.BeanException; 13 import com.inversoft.error.BasicError; 14 import com.inversoft.error.PropertyError; 15 16 17 27 public interface TypeValidator { 28 29 47 BasicError validate(Object value, Object params, String message, 48 Object [] mesgParams); 49 50 74 BasicError validate(Object value, Object params, String bundleName, String key, 75 Locale locale, Object [] mesgParams, Object caller); 76 77 96 PropertyError validate(String propertyName, Object value, Object params, 97 String message, Object [] mesgParams); 98 99 126 PropertyError validate(String propertyName, Object value, Object params, 127 String bundleName, String key, Locale locale, Object [] mesgParams, 128 Object caller); 129 130 151 PropertyError fetchAndValidate(String propertyName, Object bean, Object params, 152 String message, Object [] mesgParams) 153 throws BeanException; 154 155 185 PropertyError fetchAndValidate(String propertyName, Object bean, Object params, 186 String bundleName, String key, Locale locale, Object [] mesgParams, 187 Object caller) 188 throws BeanException; 189 } | Popular Tags |