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

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

public class StringParameter
extends Parameter

File: StringParameter.java Created: 2012-04-22 The Parameter configuration metadata for datatype String.

Author:
José Alonso de Motta
See Also:
StringParameterInstance

Field Summary
private  java.lang.String defaultValue
           
 
Fields inherited from class edu.uoc.pfc.j2ee.jalonsod.mtp.config.Parameter
copyToModel, datatype, datatypeClassReference, modelAttribute, name, required, validateMethod
 
Constructor Summary
protected StringParameter(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.String getDefaultValue()
           
 void setDefaultValue(java.lang.Object defaultValue)
           
 void setDefaultValue(java.lang.String 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.String defaultValue
Constructor Detail

StringParameter

protected StringParameter(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.String 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.String defaultValue)

getDatatypeReference

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