com.flexive.shared.configuration
Class ParameterDataEditBean<T>

java.lang.Object
  extended by com.flexive.shared.configuration.ParameterDataBean<T>
      extended by com.flexive.shared.configuration.ParameterDataEditBean<T>
Type Parameters:
T - the parameter value type
All Implemented Interfaces:
ParameterData<T>, java.io.Serializable

public class ParameterDataEditBean<T>
extends ParameterDataBean<T>

Editable parameter data - mainly used for testing.

Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.flexive.shared.configuration.ParameterDataBean
cached, defaultValue, key, path
 
Constructor Summary
ParameterDataEditBean(ParameterData<T> data)
          Copy constructor.
ParameterDataEditBean(ParameterPath path, java.lang.String key, T defaultValue)
          Constructor.
 
Method Summary
 ParameterDataEditBean<T> setDefaultValue(T defaultValue)
          Set the parameter's default value.
 ParameterDataEditBean<T> setKey(java.lang.String key)
          Set the parameter key.
 ParameterDataEditBean<T> setPath(ParameterPath path)
          Set the parameter path.
 
Methods inherited from class com.flexive.shared.configuration.ParameterDataBean
equals, getDefaultValue, getKey, getPath, hashCode, isCached, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterDataEditBean

public ParameterDataEditBean(ParameterPath path,
                             java.lang.String key,
                             T defaultValue)
Constructor.

Parameters:
path - path for the parameter
key - key for the parameter (unless for aggregate parameters)
defaultValue - default value

ParameterDataEditBean

public ParameterDataEditBean(ParameterData<T> data)
Copy constructor.

Parameters:
data - the parameter data beans to be copied
Method Detail

setPath

public ParameterDataEditBean<T> setPath(ParameterPath path)
Set the parameter path.

Parameters:
path - the parameter path.
Returns:
this

setKey

public ParameterDataEditBean<T> setKey(java.lang.String key)
Set the parameter key.

Parameters:
key - the parameter key.
Returns:
this

setDefaultValue

public ParameterDataEditBean<T> setDefaultValue(T defaultValue)
Set the parameter's default value.

Parameters:
defaultValue - the parameter's default value.
Returns:
this