22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package java.beans;
26
27 import java.lang.annotation.Documented;
28 import java.lang.annotation.Retention;
29 import java.lang.annotation.Target;
30
31 import static java.lang.annotation.ElementType.TYPE;
32 import static java.lang.annotation.RetentionPolicy.RUNTIME;
33
34 /**
35 * An annotation used to specify some class-related information
36 * for the automatically generated {@link BeanInfo} classes.
37 * This annotation is not used if the annotated class
38 * has a corresponding user-defined {@code BeanInfo} class,
39 * which does not imply the automatic analysis.
40 *
41 * @see BeanInfo#getBeanDescriptor
42 * @since 1.9
43 *
44 * @author Sergey A. Malenkov
45 */
46 @Documented
47 @Target({TYPE})
48 @Retention(RUNTIME)
49 public @interface JavaBean {
50 /**
51 * The {@link BeanDescriptor#getShortDescription short description}
52 * for the {@link BeanInfo#getBeanDescriptor bean descriptor}
53 * of the annotated class.
54 *
55 * @return the bean description,
56 * or an empty string if the description is not set.
57 */
58 String description() default "";
59
60 /**
61 * The name of the default property is used to calculate its
62 * {@link BeanInfo#getDefaultPropertyIndex index} in the
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package java.beans;
26
27 import java.lang.annotation.Documented;
28 import java.lang.annotation.Retention;
29 import java.lang.annotation.Target;
30
31 import static java.lang.annotation.ElementType.TYPE;
32 import static java.lang.annotation.RetentionPolicy.RUNTIME;
33
34 /**
35 * An annotation used to specify some class-related information
36 * for the automatically generated {@link BeanInfo} classes.
37 * This annotation is not used if the annotated class
38 * has a corresponding user-defined {@code BeanInfo} class,
39 * which does not imply the automatic analysis.
40 *
41 * @see BeanInfo#getBeanDescriptor
42 * @since 9
43 *
44 * @author Sergey A. Malenkov
45 */
46 @Documented
47 @Target({TYPE})
48 @Retention(RUNTIME)
49 public @interface JavaBean {
50 /**
51 * The {@link BeanDescriptor#getShortDescription short description}
52 * for the {@link BeanInfo#getBeanDescriptor bean descriptor}
53 * of the annotated class.
54 *
55 * @return the bean description,
56 * or an empty string if the description is not set.
57 */
58 String description() default "";
59
60 /**
61 * The name of the default property is used to calculate its
62 * {@link BeanInfo#getDefaultPropertyIndex index} in the
|