1 | String getClassname()↵ | | 1 | String get↵
|
2 | {↵ | | |
|
3 | ↵ | | 2 | MessageChoice() {↵
|
4 | return getPropertyAsString(CLASSNAME);↵ | | 3 | return getPropertyAsString(↵
|
5 | }↵ | | |
|
6 | ↵ | | |
|
7 | ↵ | | 4 | MESSAGE_CHOICE);↵
|
| | | 5 | }↵
|
|
8 | /**↵ | | 6 | /**↵
|
9 | * Set the string label used to create an instance of the↵ | | 7 | * set the input file for the publisher↵
|
10 | * test with the string constructor.↵ | | |
|
11 | * @param constr↵ | | |
|
12 | ↵ | | 8 | * ↵
|
| | | 9 | * @param file↵
|
13 | */↵ | | 10 | */↵
|
14 | public void setConstructorString(String constr)↵ | | 11 | public void set↵
|
15 | {↵ | | |
|
16 | setProperty(CONSTRUCTORSTRING,constr);↵ | | |
|
17 | }↵ | | |
|
18 | ↵ | | |
|
19 | ↵ | | 12 | InputFile(String file) {↵
|
| | | 13 | setProperty(INPUT_FILE, file);↵
|
| | | 14 | }↵
|
|
20 | /**↵ | | 15 | /**↵
|
21 | * get the string passed to the string constructor↵ | | 16 | * return the ↵
|
22 | ↵ | | 17 | path of the input file↵
|
| | | 18 | * ↵
|
23 | */↵ | | 19 | */↵
|
24 | public String getConstructorString()↵ | | 20 | public String get↵
|
25 | {↵ | | |
|
26 | ↵ | | 21 | InputFile() {↵
|
27 | return getPropertyAsString(CONSTRUCTORSTRING);↵ | | 22 | return getPropertyAsString(↵
|
28 | | | 23 | INPUT_FILE);↵
|
| | | 24 |
|