View Javadoc

1   package net.sf.jldapbeans.lang.annotation;
2   
3   import java.lang.annotation.Documented;
4   import java.lang.annotation.ElementType;
5   import java.lang.annotation.Retention;
6   import java.lang.annotation.RetentionPolicy;
7   import java.lang.annotation.Target;
8   
9   /***
10   * Identifies an attribute of a <tt>LdapBean</tt>.
11   *
12   * @author <a href="mailto:alonsoft@users.sf.net">A. Alonso Domínguez</a>
13   * @version 1.0 $ Revision 01-nov-2005 :: alonso $
14   */
15  @Documented
16  @Retention(RetentionPolicy.RUNTIME)
17  @Target(ElementType.METHOD)
18  public @interface LdapAttribute {
19  	public static final String UNDEFINED = "[undefined]";
20  	
21  	/***
22  	 * Names of the attribute which identifies it.
23  	 * <p>
24  	 * If not specified, will fallback to the method name without the
25  	 * "get" prefix.
26  	 * 
27  	 * @return The diferent names of the <tt>LdapAttribute</tt>.
28  	 */
29  	public String[] name() default UNDEFINED;
30  	
31  	public LdapModifier[] value() default { };
32  }