1 | String getSuccessCode(){↵ | | 1 | String getName() {↵
|
2 | return getPropertyAsString(SUCCESSCODE);↵ | | 2 | return getPropertyAsString(HNAME);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * set the succes code. the success code should↵ | | 5 | * Set the ↵
|
6 | * be unique.↵ | | |
|
7 | * @param code↵ | | |
|
8 | ↵ | | 6 | name for this object.↵
|
9 | */↵ | | 7 | */↵
|
10 | public void setSuccessCode(String code){↵ | | 8 | public synchronized void setName(String name) {↵
|
11 | setProperty(SUCCESSCODE,code);↵ | | 9 | this.setProperty(↵
|
12 | }↵ | | |
|
13 | ↵ | | |
|
14 | ↵ | | 10 | HNAME, name);↵
|
| | | 11 | }↵
|
|
15 | /**↵ | | 12 | /**↵
|
16 | * get the failure message↵ | | 13 | * Get the value ↵
|
17 | ↵ | | 14 | for this object.↵
|
18 | */↵ | | 15 | */↵
|
19 | public String getFailure(){↵ | | 16 | public synchronized String getValue() {↵
|
20 | return getPropertyAsString(FAILURE);↵ | | 17 | return getPropertyAsString(VALUE);↵
|
21 | }↵ | | 18 | }↵
|
|
22 | /**↵ | | 19 | /**↵
|
23 | * set the failure message↵ | | 20 | * Set the value ↵
|
24 | * @param fail↵ | | |
|
25 | ↵ | | 21 | for this object.↵
|
26 | */↵ | | 22 | */↵
|
27 | public void setFailure(String fail){↵ | | 23 | public synchronized void setValue(String ↵
|
28 | ↵ | | 24 | value) {↵
|
29 | setProperty(FAILURE,fail);↵ | | 25 | this.setProperty(VALUE,↵
|
30 | ↵ | | 26 | value);↵
|
31 | } | | 27 | }
|