01 /*
02 * AutoInstance.java
03 *
04 * Copyright (c) 2008, The University of Sheffield.
05 *
06 * This file is part of GATE (see http://gate.ac.uk/), and is free
07 * software, licenced under the GNU Library General Public License,
08 * Version 2, June 1991 (in the distribution as file licence.html,
09 * and also available at http://gate.ac.uk/gate/licence.html).
10 *
11 * Ian Roberts, 27/Jul/2008
12 *
13 * $Id: AutoInstanceParam.java 9845 2008-08-25 22:23:24Z ian_roberts $
14 */
15
16 package gate.creole.metadata;
17
18 import java.lang.annotation.Retention;
19 import java.lang.annotation.RetentionPolicy;
20 import java.lang.annotation.Target;
21
22 /**
23 * Holder for a single name/value pair for a parameter to an
24 * auto-instance. Used only in {@link AutoInstance#parameters()}.
25 */
26 @Target( {})
27 @Retention(RetentionPolicy.CLASS)
28 public @interface AutoInstanceParam {
29 /**
30 * The name of the parameter.
31 */
32 String name();
33
34 /**
35 * The parameter value as a string, following normal GATE conversion
36 * rules for non-string parameter types.
37 */
38 String value();
39 }
|