1 | String getParameters() {↵ | | 1 | String getFailure(){↵
|
2 | return this.getPropertyAsString(PARAMETERS);↵ | | 2 | return getPropertyAsString(↵
|
3 | }↵ | | |
|
|
4 | ↵ | | 3 | FAILURE);↵
|
| | | 4 | }↵
|
|
| | | 5 | /**↵
|
| | | 6 | * set the failure message↵
|
| | | 7 | * @param fail↵
|
| | | 8 | */↵
|
5 | public void setParameters(String newScript) {↵ | | 9 | public void set↵
|
6 | this.setProperty(PARAMETERS, newScript);↵ | | |
|
7 | }↵ | | |
|
|
8 | ↵ | | 10 | Failure(String fail){↵
|
| | | 11 | setProperty(FAILURE,fail);↵
|
| | | 12 | }↵
|
| | | 13 | ↵
|
| | | 14 | /**↵
|
| | | 15 | * The failure code is used by other components↵
|
| | | 16 | */↵
|
9 | public String getScriptLanguage() {↵ | | 17 | public String getFailureCode(){↵
|
10 | return this.getPropertyAsString(LANGUAGE);↵ | | 18 | return getPropertyAsString(↵
|
11 | }↵ | | |
|
|
12 | ↵ | | 19 | FAILURECODE);↵
|
| | | 20 | }↵
|
| | | 21 | ↵
|
| | | 22 | /**↵
|
| | | 23 | * Provide some unique code to denote a type of failure↵
|
| | | 24 | * @param code↵
|
| | | 25 | */↵
|
13 | public void setScriptLanguage(String lang) {↵ | | 26 | public void set↵
|
14 | this.setProperty(LANGUAGE, lang);↵ | | |
|
15 | | | 27 | FailureCode(String code){↵
|
| | | 28 | setProperty(FAILURECODE,code);↵
|
| | | 29 |
|