edu.uoc.pfc.j2ee.jalonsod.mtp.config
Class DoubleParameter

java.lang.Object
  extended by edu.uoc.pfc.j2ee.jalonsod.mtp.config.Parameter
      extended by edu.uoc.pfc.j2ee.jalonsod.mtp.config.DoubleParameter

public class DoubleParameter
extends Parameter

File: DoubleParameter.java Created: 2012-04-22 The Parameter configuration metadata for datatype Double.

Author:
José Alonso de Motta
See Also:
DoubleParameterInstance

Field Summary
private  java.lang.Double defaultValue
           
 
Fields inherited from class edu.uoc.pfc.j2ee.jalonsod.mtp.config.Parameter
copyToModel, datatype, datatypeClassReference, modelAttribute, name, required, validateMethod
 
Constructor Summary
protected DoubleParameter(java.lang.String name, java.lang.String datatype, boolean required, Validation validateMethod, boolean copyToModel, java.lang.String modelAttribute, java.lang.String defaultValue)
          Constructor of date parameter.
 
Method Summary
 java.lang.Class<?> getDatatypeReference()
           
 java.lang.Double getDefaultValue()
           
 void setDefaultValue(java.lang.Double defaultValue)
           
 void setDefaultValue(java.lang.Object defaultValue)
           
 
Methods inherited from class edu.uoc.pfc.j2ee.jalonsod.mtp.config.Parameter
createParameter, getCopyToModel, getDatatype, getModelAttribute, getName, getRequired, getValidateMethod, setCopyToModel, setModelAttribute, setName, setRequired, setValidateMethod, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultValue

private java.lang.Double defaultValue
Constructor Detail

DoubleParameter

protected DoubleParameter(java.lang.String name,
                          java.lang.String datatype,
                          boolean required,
                          Validation validateMethod,
                          boolean copyToModel,
                          java.lang.String modelAttribute,
                          java.lang.String defaultValue)
                   throws ConfiguratorException
Constructor of date parameter.

Throws:
ConfiguratorException - throws when received parameters are invalid.
Method Detail

getDefaultValue

public java.lang.Double getDefaultValue()
Specified by:
getDefaultValue in class Parameter

setDefaultValue

public void setDefaultValue(java.lang.Object defaultValue)
Specified by:
setDefaultValue in class Parameter

setDefaultValue

public void setDefaultValue(java.lang.Double defaultValue)

getDatatypeReference

public java.lang.Class<?> getDatatypeReference()
Specified by:
getDatatypeReference in class Parameter