1 | void setClassname(String classname)↵ | | 1 | void set↵
|
2 | {↵ | | |
|
3 | setProperty(CLASSNAME, classname);↵ | | |
|
4 | }↵ | | |
|
|
5 | /**↵ | | |
|
6 | * Gets the Classname attribute of the JavaConfig object↵ | | |
|
7 | *↵ | | |
|
8 | * @return the Classname value↵ | | |
|
9 | */↵ | | |
|
10 | public String getClassname()↵ | | |
|
11 | {↵ | | |
|
12 | ↵ | | 2 | XmlData(String data) {↵
|
| | | 3 | setProperty(XML_DATA, data);↵
|
| | | 4 | }↵
|
|
| | | 5 | public String getXmlData() {↵
|
13 | return getPropertyAsString(CLASSNAME);↵ | | 6 | return getPropertyAsString(↵
|
14 | }↵ | | |
|
15 | ↵ | | |
|
16 | /**↵ | | |
|
17 | * Set the string label used to create an instance of the↵ | | |
|
18 | * test with the string constructor↵ | | 7 | XML_DATA);↵
|
| | | 8 | }↵
|
|
| | | 9 | /**↵
|
| | | 10 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵
|
19 | .↵ | | 11 | * string path.↵
|
20 | * @param constr↵ | | 12 | *↵
|
| | | 13 | * @param filename↵
|
21 | */↵ | | 14 | */↵
|
22 | public void setConstructorString(String constr)↵ | | 15 | public void set↵
|
23 | {↵ | | |
|
24 | setProperty(CONSTRUCTORSTRING,constr↵ | | 16 | XmlFile(String filename) {↵
|
25 | );↵ | | 17 | setProperty(XML_DATA_FILE, filename);↵
|
26 | }↵ | | 18 | }↵
|
27 | ↵ | | |
|
28 | /**↵ | | 19 | /**↵
|
29 | * get the string passed to the string constructor↵ | | 20 | * Get the file location of the xml file.↵
|
| | | 21 | *↵
|
| | | 22 | * @return String file path.↵
|
30 | */↵ | | 23 | */↵
|
31 | public String getConstructorString()↵ | | 24 | public String get↵
|
32 | {↵ | | 25 | XmlFile() {↵
|
33 | return getPropertyAsString(CONSTRUCTORSTRING);↵ | | 26 | return getPropertyAsString(XML_DATA_FILE);↵
|
34 | } | | 27 | }
|