public class VarModel extends AbstractModel
An instance variable. Variables are created when the flow starts or state enters and destroyed when the flow or state ends, respectively.
Constructor and Description |
---|
VarModel(java.lang.String name,
java.lang.String className)
Create a variable model
|
Modifier and Type | Method and Description |
---|---|
Model |
createCopy()
Create a deep copy of this model.
|
java.lang.String |
getClassName() |
java.lang.String |
getName() |
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 |
setClassName(java.lang.String className) |
void |
setName(java.lang.String name) |
public VarModel(java.lang.String name, java.lang.String className)
name
- the name of the variableclassName
- the class type of the variablepublic 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 java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getClassName()
public void setClassName(java.lang.String className)
className
- the class name to set