01: package org.conform;
02:
03: import java.lang.annotation.ElementType;
04: import java.lang.annotation.Retention;
05: import java.lang.annotation.RetentionPolicy;
06: import java.lang.annotation.Target;
07:
08: @Target({ElementType.TYPE})
09: @Retention(RetentionPolicy.RUNTIME)
10: public @interface Bean {
11: FormatType format() default FormatType.NONE;
12:
13: String formatClass() default "";
14:
15: /**
16: * @return pattern for the Format (usage depends on the FormatType).
17: */
18: String pattern() default "";
19:
20: /**
21: * @return key for looking up the pattern for the Format in the resource bundle (localized formatting)
22: */
23: String patternKey() default "";
24: }
|