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

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

public class ParameterDataBean<T>
extends java.lang.Object
implements ParameterData<T>

Basic implementation of ParameterData. Container for the path, the key and the default value of a parameter.

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

Field Summary
protected  T defaultValue
           
protected  java.lang.String key
           
protected  ParameterPath path
           
 
Constructor Summary
ParameterDataBean(ParameterPath path, java.lang.String key, T defaultValue)
          Constructor.
ParameterDataBean(ParameterPath path, T defaultValue)
          Constructor for aggregate parameters (with generated keys).
 
Method Summary
 T getDefaultValue()
          Returns the default value of the parameter.
 java.lang.String getKey()
          Returns the key associated with the parameter.
 ParameterPath getPath()
          Returns the path object associated with the parameter.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

path

protected ParameterPath path

key

protected java.lang.String key

defaultValue

protected T defaultValue
Constructor Detail

ParameterDataBean

public ParameterDataBean(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

ParameterDataBean

public ParameterDataBean(ParameterPath path,
                         T defaultValue)
Constructor for aggregate parameters (with generated keys).

Parameters:
path - path to be used for the parameters
defaultValue - the default value
Method Detail

getPath

public ParameterPath getPath()
Returns the path object associated with the parameter.

Specified by:
getPath in interface ParameterData<T>
Returns:
the path object associated with the parameter.

getKey

public java.lang.String getKey()
Returns the key associated with the parameter.

Specified by:
getKey in interface ParameterData<T>
Returns:
the key associated with the parameter.

getDefaultValue

public T getDefaultValue()
Returns the default value of the parameter.

Specified by:
getDefaultValue in interface ParameterData<T>
Returns:
the default value of the parameter.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object