Class IfModel
java.lang.Object
org.springframework.webflow.engine.model.AbstractModel
org.springframework.webflow.engine.model.IfModel
- All Implemented Interfaces:
Model
Model support for if elements.
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.
- Author:
- Scott Andrews
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a deep copy of this model.getElse()getTest()getThen()booleanisMergeableWith(Model model) Determine if the model is able to be merged into the current modelvoidMerge the model into the current modelvoidvoidvoid
-
Constructor Details
-
IfModel
Create an if model- Parameters:
test- the boolean condition to testthen- the state to transition to if the boolean expression evaluates to true
-
-
Method Details
-
isMergeableWith
Description copied from interface:ModelDetermine if the model is able to be merged into the current model- Parameters:
model- the model to compare- Returns:
- true if able to merge
-
merge
Description copied from interface:ModelMerge the model into the current model- Parameters:
model- the model to merge with
-
createCopy
Description copied from interface:ModelCreate a deep copy of this model. Needed when merging models and collections.- Returns:
- a deep copy of this model
-
getTest
- Returns:
- the test
-
setTest
- Parameters:
test- the test to set
-
getThen
- Returns:
- the then
-
setThen
- Parameters:
then- the then to set
-
getElse
- Returns:
- the else
-
setElse
- Parameters:
elze- the else to set
-