| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.seasar.teeda.extension.annotation.validator; |
| 17 | |
|
| 18 | |
import java.lang.annotation.ElementType; |
| 19 | |
import java.lang.annotation.Retention; |
| 20 | |
import java.lang.annotation.RetentionPolicy; |
| 21 | |
import java.lang.annotation.Target; |
| 22 | |
|
| 23 | |
import org.seasar.teeda.extension.validator.TNumberLengthValidator; |
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
@Retention(RetentionPolicy.RUNTIME) |
| 29 | |
@Target( { ElementType.FIELD, ElementType.METHOD }) |
| 30 | |
@Validator("TNumberLengthValidator") |
| 31 | |
public @interface NumberLength { |
| 32 | |
|
| 33 | |
int integralMin() default TNumberLengthValidator.INTEGRAL_DEFAULT_MIN; |
| 34 | |
|
| 35 | |
int integralMax() default TNumberLengthValidator.INTEGRAL_DEFAULT_MAX; |
| 36 | |
|
| 37 | |
int fractionMin() default TNumberLengthValidator.FRACTAL_DEFAULT_MIN; |
| 38 | |
|
| 39 | |
int fractionMax() default TNumberLengthValidator.FRACTAL_DEFAULT_MAX; |
| 40 | |
|
| 41 | |
String target() default ""; |
| 42 | |
|
| 43 | |
} |