View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   
6   package cz.cuni.amis.pogamut.unreal.t3dgenerator.annotations;
7   
8   import java.lang.annotation.ElementType;
9   import java.lang.annotation.Retention;
10  import java.lang.annotation.RetentionPolicy;
11  import java.lang.annotation.Target;
12  
13  /**
14   * Used to anotate fields of unreal datatypes (annotated with {@link UnrealDataType})
15   * or unreal beans (annotated with {@link UnrealBean})
16   * and declare
17   * a different field name than the name of the java field.
18   * Might be also applied on public getter methods in associtaion with {@link UnrealProperty}.
19   * @author Martin Cerny
20   */
21  @Retention(RetentionPolicy.RUNTIME)
22  @Target({ElementType.FIELD, ElementType.METHOD})
23  public @interface FieldName {
24      /**
25       * Field name for unreal.
26       * @return 
27       */
28      String value();
29  }