@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface Stereotype
Applies to properties.
For example, a name, a comment, a description, etc. all correspond to
the Java type java.lang.String but you surely wish validators, default sizes,
visual editors, etc. different in each case and you need to tune finer;
you can do this assigning a stereotype to each case. That is, you can have
the next sterotypes NAME, MEMO or DESCRIPTION and assign them to your
properties.
Example:
@Stereotype("PERSON_NAME") private String name;
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |