java.lang.Object
org.springframework.webflow.engine.model.AbstractModel
org.springframework.webflow.engine.model.VarModel
All Implemented Interfaces:
Model

public class VarModel extends AbstractModel
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 Details

    • VarModel

      public VarModel(String name, String className)
      Create a variable model
      Parameters:
      name - the name of the variable
      className - the class type of the variable
  • Method Details

    • isMergeableWith

      public boolean isMergeableWith(Model model)
      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

      public void merge(Model model)
      Description copied from interface: Model
      Merge the model into the current model
      Parameters:
      model - the model to merge with
    • createCopy

      public Model 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

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getClassName

      public String getClassName()
      Returns:
      the class name
    • setClassName

      public void setClassName(String className)
      Parameters:
      className - the class name to set