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

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

public class BooleanParameter
extends Parameter

File: BooleanParameter.java Created: 2012-04-22 The Parameter configuration metadata for datatype Boolean.

Author:
José Alonso de Motta
See Also:
BooleanParameterInstance

Field Summary
(package private)  java.lang.Boolean defaultValue
           
 
Fields inherited from class edu.uoc.pfc.j2ee.jalonsod.mtp.config.Parameter
copyToModel, datatype, datatypeClassReference, modelAttribute, name, required, validateMethod
 
Constructor Summary
protected BooleanParameter(java.lang.String name, java.lang.String datatype, boolean required, Validation validateMethod, boolean copyToModel, java.lang.String modelAttribute, java.lang.String defaultValue)
          Constructor of boolean parameter.
 
Method Summary
 java.lang.Class<?> getDatatypeReference()
           
 java.lang.Boolean getDefaultValue()
           
 void setDefaultValue(java.lang.Boolean 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

java.lang.Boolean defaultValue
Constructor Detail

BooleanParameter

protected BooleanParameter(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 boolean parameter.

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

getDefaultValue

public java.lang.Boolean 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.Boolean defaultValue)

getDatatypeReference

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