Class Reason
- java.lang.Object
-
- org.eclipse.graphiti.features.impl.Reason
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IReasoncreateFalseReason()Creates the false reason.static IReasoncreateFalseReason(java.lang.String string)Creates the false reason.static IReasoncreateTrueReason()Creates the true reason.static IReasoncreateTrueReason(java.lang.String string)Creates the true reason.java.lang.StringgetText()Gets the text.voidsetBool(boolean bool)Sets the bool.voidsetText(java.lang.String reasonText)Sets the text.booleantoBoolean()Converts to boolean.java.lang.StringtoString()
-
-
-
Method Detail
-
createFalseReason
public static IReason createFalseReason()
Creates the false reason.- Returns:
- the i reason
-
createFalseReason
public static IReason createFalseReason(java.lang.String string)
Creates the false reason.- Parameters:
string- the string- Returns:
- the i reason
-
createTrueReason
public static IReason createTrueReason()
Creates the true reason.- Returns:
- the i reason
-
createTrueReason
public static IReason createTrueReason(java.lang.String string)
Creates the true reason.- Parameters:
string- the string- Returns:
- the i reason
-
getText
public java.lang.String getText()
Description copied from interface:IReasonGets the text.
-
setBool
public void setBool(boolean bool)
Sets the bool.- Parameters:
bool- the new bool
-
setText
public void setText(java.lang.String reasonText)
Sets the text.- Parameters:
reasonText- the new text
-
toBoolean
public boolean toBoolean()
Description copied from interface:IReasonConverts to boolean.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-