org.openxava.annotations
Annotation Type Stereotype
@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface Stereotype
A stereotype is the way to determine a specific behavior of a type.
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;
- Author:
- Javier Paniza
|
Required Element Summary |
java.lang.String |
value
|
value
public abstract java.lang.String value