Constructor and Description |
---|
Reason(boolean b)
Creates a new
Reason . |
Reason(boolean b,
String reasonText)
Creates a new
Reason . |
Modifier and Type | Method and Description |
---|---|
static IReason |
createFalseReason()
Creates the false reason.
|
static IReason |
createFalseReason(String string)
Creates the false reason.
|
static IReason |
createTrueReason()
Creates the true reason.
|
static IReason |
createTrueReason(String string)
Creates the true reason.
|
String |
getText()
Gets the text.
|
void |
setBool(boolean bool)
Sets the bool.
|
void |
setText(String reasonText)
Sets the text.
|
boolean |
toBoolean()
Converts to boolean.
|
String |
toString() |
public Reason(boolean b)
Reason
.b
- the boolpublic static IReason createFalseReason()
public static IReason createFalseReason(String string)
string
- the stringpublic static IReason createTrueReason()
public static IReason createTrueReason(String string)
string
- the stringpublic void setBool(boolean bool)
bool
- the new boolpublic void setText(String reasonText)
reasonText
- the new textpublic boolean toBoolean()
IReason