1
2
3
4
5
6
7
8
9
10
11 package org.astrogrid.component.descriptor;
12
13 import junit.framework.Test;
14
15 /*** Handy stand-alone implementation of a component descriptor
16 * @author Noel Winstanley nw@jb.man.ac.uk 07-Mar-2004
17 *
18 */
19 public class SimpleComponentDescriptor implements ComponentDescriptor {
20 protected SimpleComponentDescriptor(){
21 }
22 /*** Construct a new SimpleComponentDescriptor
23 *
24 */
25 public SimpleComponentDescriptor(String name,String description) {
26 this(name,description,null);
27 }
28
29 public SimpleComponentDescriptor(String name,String description,Test test) {
30 this.test = test;
31 this.name = name;
32 this.description = description;
33 }
34 protected String name;
35 protected String description;
36 protected Test test;
37 /***
38 * @see org.astrogrid.jes.component.ComponentDescriptor#getName()
39 */
40 public String getName() {
41 return name;
42 }
43 /***
44 * @see org.astrogrid.jes.component.ComponentDescriptor#getDescription()
45 */
46 public String getDescription() {
47 return description;
48 }
49 /***
50 * @see org.astrogrid.jes.component.ComponentDescriptor#getInstallationTest()
51 */
52 public Test getInstallationTest() {
53 return test;
54 }
55 }
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75