1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.seasar.teeda.extension.annotation.convert; |
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 | |
|
24 | |
|
25 | |
|
26 | |
@Retention(RetentionPolicy.RUNTIME) |
27 | |
@Target( { ElementType.FIELD, ElementType.METHOD }) |
28 | |
@Converter("TNumberConverter") |
29 | |
public @interface NumberConverter { |
30 | |
|
31 | |
String pattern() default ""; |
32 | |
|
33 | |
String type() default ""; |
34 | |
|
35 | |
String currencyCode() default ""; |
36 | |
|
37 | |
String currencySymbol() default ""; |
38 | |
|
39 | |
boolean isIntegerOnly() default false; |
40 | |
|
41 | |
boolean isGroupingUsed() default false; |
42 | |
|
43 | |
int maxFractionDigits() default 0; |
44 | |
|
45 | |
int maxIntegerDigits() default 0; |
46 | |
|
47 | |
int minFractionDigits() default 0; |
48 | |
|
49 | |
int minIntegerDigits() default 0; |
50 | |
|
51 | |
String target() default ""; |
52 | |
|
53 | |
String objectMessageId() default ""; |
54 | |
|
55 | |
String stringMessageId() default ""; |
56 | |
|
57 | |
} |