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
-
Method Summary
Modifier and TypeMethodDescriptionCreate a deep copy of this model.getElse()
getTest()
getThen()
boolean
isMergeableWith
(Model model) Determine if the model is able to be merged into the current modelvoid
Merge the model into the current modelvoid
void
void
-
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:Model
Determine 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:Model
Merge the model into the current model- Parameters:
model
- the model to merge with
-
createCopy
Description copied from interface:Model
Create 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
-