1
2
3
4
5
6
7
8
9
10
11 package org.astrogrid.applications.javaclass;
12
13 import org.astrogrid.applications.description.base.BaseParameterDescription;
14
15 /*** A {@link org.astrogrid.applications.description.ParameterDescription} for a {@link org.astrogrid.applications.javaclass.JavaClassApplication}
16 * <p>
17 * This paramter description extends the base one with an extra field - the 'target-class' for this parameter - i.e. the true java-class that this parameter
18 * has to be converted to when calling the application method.
19 * @author Noel Winstanley nw@jb.man.ac.uk 08-Jun-2004
20 *
21 */
22 public class JavaClassParameterDescription extends BaseParameterDescription {
23 protected Class targetClass;
24
25 /*** Access the target class for this parameter
26 * @return the class representing the expected type for this parameter
27 */
28 public Class getTargetClass() {
29 return targetClass;
30 }
31 /*** See the targetClass attribute for this parameter
32 * @param c the expected type for this parameter.
33 */
34 public void setTargetClass(Class c) {
35 this.targetClass = c;
36 }
37 }
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56