1 | void setRandomPath(String path) {↵ | | 1 | void setXmlData(String data) {↵
|
2 | setProperty(RANDOM_PATH, path);↵ | | 2 | setProperty(XML_DATA, data);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | |
|
5 | * return the random path for messages↵ | | |
|
6 | * ↵ | | |
|
7 | */↵ | | |
|
8 | public String getRandomPath() {↵ | | 4 | public String getXmlData() {↵
|
9 | return getPropertyAsString(RANDOM_PATH);↵ | | 5 | return getPropertyAsString(XML_DATA);↵
|
10 | }↵ | | 6 | }↵
|
|
11 | /**↵ | | 7 | /**↵
|
12 | * set the text for the message↵ | | |
|
13 | * ↵ | | |
|
14 | * @param message↵ | | |
|
15 | ↵ | | 8 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵
|
| | | 9 | * string path.↵
|
| | | 10 | *↵
|
| | | 11 | * @param filename↵
|
16 | */↵ | | 12 | */↵
|
17 | public void setTextMessage(String message) {↵ | | 13 | public void set↵
|
18 | setProperty(TEXT_MSG, messag↵ | | 14 | XmlFile(String filename) {↵
|
19 | e);↵ | | 15 | setProperty(XML_DATA_FILE, filename);↵
|
20 | }↵ | | 16 | }↵
|
|
21 | /**↵ | | 17 | /**↵
|
22 | * return the text for the message↵ | | 18 | * Get the ↵
|
23 | * ↵ | | |
|
24 | ↵ | | 19 | file location of the xml file.↵
|
| | | 20 | *↵
|
| | | 21 | * @return String file path.↵
|
25 | */↵ | | 22 | */↵
|
26 | public String getTextMessage() {↵ | | 23 | public String get↵
|
27 | ↵ | | 24 | XmlFile() {↵
|
28 | return getPropertyAsString(TEXT_MSG);↵ | | 25 | return getPropertyAsString(↵
|
29 | ↵ | | 26 | XML_DATA_FILE);↵
|
30 | } | | 27 | }
|