1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package net.sf.beanform.integration;
16
17 import java.util.SortedMap;
18
19 import net.sf.beanform.prop.BeanProperty;
20
21 /***
22 * Provides integration with different entity annotation schemes.
23 *
24 * @author Daniel Gredler
25 */
26 public interface Integrator {
27
28 public static final String REQUIRED = "required";
29 public static final String MIN_LENGTH = "minLength";
30 public static final String MAX_LENGTH = "maxLength";
31 public static final String MIN = "min";
32 public static final String MAX = "max";
33 public static final String MIN_DATE = "minDate";
34 public static final String MAX_DATE = "maxDate";
35 public static final String EMAIL = "email";
36 public static final String PATTERN = "pattern";
37
38 public SortedMap<String,String> getValidation( BeanProperty prop );
39 public Integer getMaxLength( BeanProperty prop );
40 public boolean isNullable( BeanProperty prop );
41
42 }