Annotation Type Stereotype


  • @Retention(RUNTIME)
    @Target({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

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value  
    • Element Detail

      • value

        java.lang.String value