- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
public class AdvancedBoolean {
private boolean result;
private DefenitionDictionary.RESULT_CODE code;
//------------------------------------------------------------------------------
//constructors
//------------------------------------------------------------------------------
public AdvancedBoolean() {
result = true;
}
public AdvancedBoolean(boolean _result) {
result = _result;
}
public AdvancedBoolean(boolean _result, DefenitionDictionary.RESULT_CODE _code) {
result = _result;
code = _code;
}
//------------------------------------------------------------------------------
//get methods
//------------------------------------------------------------------------------
public boolean isResult() {
return result;
}
public DefenitionDictionary.RESULT_CODE getCode() {
return code;
}
//------------------------------------------------------------------------------
//set methods
//------------------------------------------------------------------------------
public void setResult(boolean _result) {
result = _result;
}
public void setCode(DefenitionDictionary.RESULT_CODE _code) {
code = _code;
}
//------------------------------------------------------------------------------
//other methods
//------------------------------------------------------------------------------
public String getLabel() {
return code.getResultLabel();
}
}