Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Web Flow
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.webflow.engine.model
Class VarModel

    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 Summary
`VarModel(java.lang.String name, java.lang.String className)` Create a variable model

Method Summary
`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)`

Methods inherited from class org.springframework.webflow.engine.model.AbstractModel
`copy, copyList, merge, merge, merge, merge, merge`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### VarModel

    public VarModel(java.lang.String name,
                    java.lang.String className)

  Create a variable model

  Parameters:
    `name` - the name of the variable
    `className` - the class type of the variable

Method Detail

### 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 java.lang.String getName()

  Returns:
    the name

### setName

    public void setName(java.lang.String name)

  Parameters:
    `name` - the name to set

### getClassName

    public java.lang.String getClassName()

  Returns:
    the class name

### setClassName

    public void setClassName(java.lang.String className)

  Parameters:
    `className` - the class name to set

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Web Flow
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD