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