public class IfModel extends AbstractModel
Defines a boolean expression to evaluate a target state to transition to if that expression evaluates to true. Optionally, this element may define an 'else' attribute to define a state to transition to if the expression evaluates to false.
| Constructor and Description |
|---|
IfModel(java.lang.String test,
java.lang.String then)
Create an if model
|
| Modifier and Type | Method and Description |
|---|---|
Model |
createCopy()
Create a deep copy of this model.
|
java.lang.String |
getElse() |
java.lang.String |
getTest() |
java.lang.String |
getThen() |
boolean |
isMergeableWith(Model model)
Determine if the model is able to be merged into the current model
|
void |
merge(Model model)
Merge the model into the current model
|
void |
setElse(java.lang.String elze) |
void |
setTest(java.lang.String test) |
void |
setThen(java.lang.String then) |
public IfModel(java.lang.String test,
java.lang.String then)
test - the boolean condition to testthen - the state to transition to if the boolean expression evaluates to truepublic boolean isMergeableWith(Model model)
Modelmodel - the model to comparepublic void merge(Model model)
Modelmodel - the model to merge withpublic Model createCopy()
Modelpublic java.lang.String getTest()
public void setTest(java.lang.String test)
test - the test to setpublic java.lang.String getThen()
public void setThen(java.lang.String then)
then - the then to setpublic java.lang.String getElse()
public void setElse(java.lang.String elze)
elze - the else to set