Class VarModel
java.lang.Object
org.springframework.webflow.engine.model.AbstractModel
org.springframework.webflow.engine.model.VarModel
- All Implemented Interfaces:
Model
Model support for var elements.
An instance variable. Variables are created when the flow starts or state enters and destroyed when the flow or state ends, respectively.
- Author:
- Scott Andrews
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a deep copy of this model.getName()
boolean
isMergeableWith
(Model model) Determine if the model is able to be merged into the current modelvoid
Merge the model into the current modelvoid
setClassName
(String className) void
-
Constructor Details
-
VarModel
Create a variable model- Parameters:
name
- the name of the variableclassName
- the class type of the variable
-
-
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
-
getName
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getClassName
- Returns:
- the class name
-
setClassName
- Parameters:
className
- the class name to set
-