View Javadoc

1   package org.jcr_blog.jcrmapping;
2   
3   import java.lang.annotation.ElementType;
4   import java.lang.annotation.Retention;
5   import java.lang.annotation.RetentionPolicy;
6   import java.lang.annotation.Target;
7   
8   /**
9    *
10   * @author Sebastian Prehn <sebastian.prehn@planetswebdesign.de>
11   */
12  @Target(ElementType.FIELD)
13  @Retention(RetentionPolicy.RUNTIME)
14  
15  public @interface PropertyConfiguration {
16      
17      public enum SpecialProperty {
18          value, path, name;
19      }
20      /**
21       * Optional namespace of name.
22       * 
23       */
24      public String namespace() default "";
25      /**
26       * Optional name of the property. If empty the name of the field will be used.
27       *  
28       */
29      public String name() default ""; 
30      /**
31       * If set to anything but value the path or name or node of the node will be used for conversion.
32       * If set to anything else but value namespace and name will be ignored.
33       */
34      public SpecialProperty special() default SpecialProperty.value;
35      
36  }