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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a deep copy of this model.getName()booleanisMergeableWith(Model model) Determine if the model is able to be merged into the current modelvoidMerge the model into the current modelvoidsetClassName(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: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
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getClassName
- Returns:
- the class name
-
setClassName
- Parameters:
className- the class name to set
-