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(String test,
String then)
Create an if model
|
Modifier and Type | Method and Description |
---|---|
Model |
createCopy()
Create a deep copy of this model.
|
String |
getElse() |
String |
getTest() |
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(String elze) |
void |
setTest(String test) |
void |
setThen(String then) |
public boolean isMergeableWith(Model model)
Model
model
- the model to comparepublic void merge(Model model)
Model
model
- the model to merge withpublic Model createCopy()
Model
public String getTest()
public void setTest(String test)
test
- the test to setpublic String getThen()
public void setThen(String then)
then
- the then to setpublic String getElse()
public void setElse(String elze)
elze
- the else to set