1 | String getFailure(){↵ | | 1 | String getName() {↵
|
2 | return getPropertyAsString(FAILURE);↵ | | 2 | return getPropertyAsString(HNAME);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * set the failure message↵ | | 5 | * Set the ↵
|
6 | * @param fail↵ | | |
|
7 | ↵ | | 6 | name for this object.↵
|
8 | */↵ | | 7 | */↵
|
9 | public void setFailure(String fail){↵ | | 8 | public synchronized void setName(String ↵
|
10 | setProperty(FAILURE,fail);↵ | | |
|
11 | }↵ | | |
|
12 | ↵ | | |
|
13 | /**↵ | | |
|
14 | * The fai↵ | | 9 | name) {↵
|
| | | 10 | this.setProperty(HNAME, name);↵
|
| | | 11 | }↵
|
|
| | | 12 | /**↵
|
15 | lure code is used by other components↵ | | 13 | * Get the value ↵
|
16 | ↵ | | 14 | for this object.↵
|
17 | */↵ | | 15 | */↵
|
18 | public String getFailureCode(){↵ | | 16 | public synchronized String getValue() {↵
|
19 | return getPropertyAsString(FAILURECODE);↵ | | 17 | return getPropertyAsString(↵
|
20 | }↵ | | |
|
21 | ↵ | | |
|
22 | /**↵ | | |
|
23 | * Provide some unique code to denote a type of failure↵ | | |
|
24 | * @param code↵ | | |
|
25 | ↵ | | 18 | VALUE);↵
|
| | | 19 | }↵
|
|
| | | 20 | /**↵
|
| | | 21 | * Set the value for this object.↵
|
26 | */↵ | | 22 | */↵
|
27 | public void setFailureCode(String code){↵ | | 23 | public synchronized void setValue(String value) {↵
|
28 | setProperty(FAILURECODE,code);↵ | | 24 | this.setProperty(VALUE, value);↵
|
29 | | | 25 |
|