1 | String getXmlPathLoc() {↵ | | 1 | String getMatchNumberAsString() {↵
|
2 | return getPropertyAsString(XML_PATH_LOC);↵ | | 2 | return getPropertyAsString(MATCH_NUMBER);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵ | | 5 | * ↵
|
6 | * string path.↵ | | 6 | Sets the value of the variable if no matches are found↵
|
7 | * ↵ | | 7 | * ↵
|
8 | * @param filename↵ | | 8 | * @param defaultValue↵
|
9 | */↵ | | 9 | */↵
|
10 | public void setXmlFile(String filename) {↵ | | 10 | public void set↵
|
11 | setProperty(XML_DATA_FILE, filename);↵ | | |
|
12 | }↵ | | |
|
|
13 | /**↵ | | |
|
14 | * Get the file location of the xml file.↵ | | |
|
15 | * ↵ | | |
|
16 | * @return String file path.↵ | | |
|
17 | */↵ | | 11 | DefaultValue(String defaultValue) {↵
|
| | | 12 | setProperty(DEFAULT, defaultValue);↵
|
| | | 13 | }↵
|
|
18 | public String getXmlFile() {↵ | | 14 | public String getDefaultValue() {↵
|
19 | return getPropertyAsString(XML_DATA_FILE);↵ | | 15 | return getPropertyAsString(DEFAULT);↵
|
20 | } | | 16 | }
|