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 cz.cuni.amis.pogamut.unreal.t3dgenerator.elements.IUnrealReferencable;
9   import java.lang.annotation.ElementType;
10  import java.lang.annotation.Retention;
11  import java.lang.annotation.RetentionPolicy;
12  import java.lang.annotation.Target;
13  
14  /**
15   * Designates a field of collection type. All memebers
16   * of the collection are added as children of the element. 
17   * This field is by default not considered a property of the object. If it should be,
18   * use {@link UnrealProperty} annotation to designate this.
19   * @author Martin Cerny
20   */
21  @Retention(RetentionPolicy.RUNTIME)
22  @Target(ElementType.FIELD)
23  public @interface UnrealChildCollection {
24      /**
25       * If set to anything but empty string, the child collection is enclosed in a
26       * Begin XXX ... End XXX block with given name
27       * @return 
28       */
29      String encloseIn() default "";
30  }