Spring Web Flow

org.springframework.webflow.engine.model
Class AttributeModel

java.lang.Object
  extended by org.springframework.webflow.engine.model.AbstractModel
      extended by org.springframework.webflow.engine.model.AttributeModel
All Implemented Interfaces:
Model

public class AttributeModel
extends AbstractModel

Model support for attributes.

A meta attribute describing or otherwise annotating it's holder.

Author:
Scott Andrews

Constructor Summary
AttributeModel(java.lang.String name, java.lang.String value)
          Create an attribute model
 
Method Summary
 Model createCopy()
          Create a deep copy of this model.
 java.lang.String getName()
           
 java.lang.String getType()
           
 java.lang.String getValue()
           
 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 setName(java.lang.String name)
           
 void setType(java.lang.String type)
           
 void setValue(java.lang.String value)
           
 
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

AttributeModel

public AttributeModel(java.lang.String name,
                      java.lang.String value)
Create an attribute model

Parameters:
name - the name of the attribute
value - the value of the attribute
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

getType

public java.lang.String getType()
Returns:
the type

setType

public void setType(java.lang.String type)
Parameters:
type - the type to set

getValue

public java.lang.String getValue()
Returns:
the value

setValue

public void setValue(java.lang.String value)
Parameters:
value - the value to set

Spring Web Flow