31 import java.lang.annotation.Retention; 32 import java.lang.annotation.RetentionPolicy; 33 import java.lang.annotation.Target; 34 import org.jemmy.interfaces.ControlInterface; 35 import org.jemmy.interfaces.TypeControlInterface; 36 37 /** 38 * To be applied on classes - ancestors of <code>Wrp</code> 39 * class. 40 * @see Wrap 41 * @author shura 42 */ 43 @Retention(RetentionPolicy.RUNTIME) 44 @Target(ElementType.TYPE) 45 @Inherited 46 @Documented 47 public @interface ControlInterfaces { 48 /** 49 * List of interfaces supported by this wrap. 50 * @see ControlInterface 51 */ 52 Class<? extends ControlInterface>[] value(); 53 /** 54 * List of encapsulated types for the <code>TypeControlInterface</code> 55 * interfaces listed in <code>value</code>. 56 * Note that this list should be shorter that the <code>value</code> to not 57 * provide anything for a <code>ControlInterface</code> which is not a 58 * <code>TypeControlInterface</code> 59 * @see TypeControlInterface 60 */ 61 Class[] encapsulates() default {}; 62 /** 63 * This provides names for the dock methods which would be generated. If the array 64 * does not have enough elements, the method would be named as <code>"as" + value[i].getName()</code>. 65 */ 66 String[] name() default {}; 67 } | 31 import java.lang.annotation.Retention; 32 import java.lang.annotation.RetentionPolicy; 33 import java.lang.annotation.Target; 34 import org.jemmy.interfaces.ControlInterface; 35 import org.jemmy.interfaces.TypeControlInterface; 36 37 /** 38 * To be applied on classes - ancestors of <code>Wrp</code> 39 * class. 40 * @see Wrap 41 * @author shura 42 */ 43 @Retention(RetentionPolicy.RUNTIME) 44 @Target(ElementType.TYPE) 45 @Inherited 46 @Documented 47 public @interface ControlInterfaces { 48 /** 49 * List of interfaces supported by this wrap. 50 * @see ControlInterface 51 * @return todo document 52 */ 53 Class<? extends ControlInterface>[] value(); 54 /** 55 * List of encapsulated types for the <code>TypeControlInterface</code> 56 * interfaces listed in <code>value</code>. 57 * Note that this list should be shorter that the <code>value</code> to not 58 * provide anything for a <code>ControlInterface</code> which is not a 59 * <code>TypeControlInterface</code> 60 * @see TypeControlInterface 61 * @return todo document 62 */ 63 Class[] encapsulates() default {}; 64 /** 65 * This provides names for the dock methods which would be generated. If the array 66 * does not have enough elements, the method would be named as <code>"as" + value[i].getName()</code>. 67 * @return todo document 68 */ 69 String[] name() default {}; 70 } |