1 | void setClassname(String classname)↵ | | 1 | void set↵
|
2 | {↵ | | |
|
3 | ↵ | | 2 | MessageChoice(String choice) {↵
|
4 | setProperty(CLASSNAME, classname);↵ | | 3 | setProperty(MESSAGE_CHOICE, choice);↵
|
5 | }↵ | | 4 | }↵
|
|
6 | /**↵ | | 5 | /**↵
|
7 | * Gets the Classname attribute of the JavaConfig object↵ | | 6 | * return the ↵
|
8 | *↵ | | |
|
9 | * @return the Classname value↵ | | |
|
10 | ↵ | | 7 | source of the message↵
|
| | | 8 | * ↵
|
11 | */↵ | | 9 | */↵
|
12 | public String getClassname()↵ | | 10 | public String get↵
|
13 | {↵ | | |
|
14 | ↵ | | 11 | MessageChoice() {↵
|
15 | return getPropertyAsString(CLASSNAME);↵ | | 12 | return getPropertyAsString(↵
|
16 | }↵ | | |
|
17 | ↵ | | |
|
18 | ↵ | | 13 | MESSAGE_CHOICE);↵
|
| | | 14 | }↵
|
|
19 | /**↵ | | 15 | /**↵
|
20 | * Set the string label used to create an instance of the↵ | | 16 | * set the ↵
|
21 | * test with the string constructor.↵ | | |
|
22 | * @param constr↵ | | |
|
23 | ↵ | | 17 | input file for the publisher↵
|
| | | 18 | * ↵
|
| | | 19 | * @param file↵
|
24 | */↵ | | 20 | */↵
|
25 | public void setConstructorString(String constr)↵ | | 21 | public void set↵
|
26 | {↵ | | |
|
27 | setProperty(CONSTRUCTORSTRING,constr);↵ | | |
|
28 | }↵ | | |
|
29 | ↵ | | |
|
30 | ↵ | | 22 | InputFile(String file) {↵
|
| | | 23 | setProperty(INPUT_FILE, file);↵
|
| | | 24 | }↵
|
|
31 | /**↵ | | 25 | /**↵
|
32 | * get the string passed to the string constructor↵ | | 26 | * return the ↵
|
33 | ↵ | | 27 | path of the input file↵
|
| | | 28 | * ↵
|
34 | */↵ | | 29 | */↵
|
35 | public String getConstructorString()↵ | | 30 | public String get↵
|
36 | {↵ | | |
|
37 | ↵ | | 31 | InputFile() {↵
|
38 | return getPropertyAsString(CONSTRUCTORSTRING);↵ | | 32 | return getPropertyAsString(↵
|
39 | | | 33 | INPUT_FILE);↵
|
| | | 34 |
|