1 | void setRefName(String refName) {↵ | | 1 | void setXmlData(String data) {↵
|
2 | setProperty(REFNAME, refName);↵ | | 2 | setProperty(XML_DATA, data);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public String getRefName() {↵ | | 4 | public String getXmlData() {↵
|
5 | return getPropertyAsString(REFNAME);↵ | | 5 | return getPropertyAsString(XML_DATA);↵
|
6 | }↵ | | 6 | }↵
|
|
7 | ↵ | | 7 | /**↵
|
| | | 8 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵
|
| | | 9 | * string path.↵
|
| | | 10 | *↵
|
| | | 11 | * @param filename↵
|
| | | 12 | */↵
|
8 | public void setDefaultValue(String val) {↵ | | 13 | public void set↵
|
9 | setProperty(DEFAULT, val);↵ | | |
|
10 | }↵ | | |
|
|
11 | public String getDefaultValue() {↵ | | |
|
12 | ↵ | | 14 | XmlFile(String filename) {↵
|
| | | 15 | setProperty(XML_DATA_FILE, filename);↵
|
| | | 16 | }↵
|
|
| | | 17 | /**↵
|
| | | 18 | * Get the file location of the xml file.↵
|
| | | 19 | *↵
|
| | | 20 | * @return String file path.↵
|
| | | 21 | */↵
|
| | | 22 | public String getXmlFile() {↵
|
13 | return getPropertyAsString(DEFAULT);↵ | | 23 | return getPropertyAsString(↵
|
14 | ↵ | | 24 | XML_DATA_FILE);↵
|
15 | } | | 25 | }
|