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 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()
-
-
-
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:IReason
Gets 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:IReason
Converts to boolean.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-