|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uoc.pfc.j2ee.jalonsod.mtp.request.ParameterInstance
edu.uoc.pfc.j2ee.jalonsod.mtp.request.DoubleParameterInstance
public class DoubleParameterInstance
File: DoubleParameterInstance.java
Created: 2012-05-01
Holds a request parameter value of type Double
.
DoubleParameter
Field Summary | |
---|---|
(package private) java.lang.Double |
value
The value of the request parameter. |
Fields inherited from class edu.uoc.pfc.j2ee.jalonsod.mtp.request.ParameterInstance |
---|
parameter, VALIDATION_DATATYPE_CONVERSION_ERROR, VALIDATION_FUNCTION_ERROR, VALIDATION_NOT_VALIDATED, VALIDATION_OK, VALIDATION_REQUIRED_VALUE_IS_NULL, validationStatus |
Constructor Summary | |
---|---|
DoubleParameterInstance(Parameter parameter)
|
Method Summary | |
---|---|
java.lang.Double |
getDefaultValue()
Returns the default value of the parameterInstance with appropriate datatype. |
java.lang.Double |
getValue()
Returns the value of the parameterInstance . |
void |
setStringValue(java.lang.String value)
Sets the value of the parameterInstance received in a string and converted to
appropriate datatype. |
void |
setValue(java.lang.Double value)
The setter of the value received as same datatype as the parameterInstance. |
void |
setValue(java.lang.Object value)
Sets the value of the parameterInstance . |
java.lang.String |
toString()
|
Methods inherited from class edu.uoc.pfc.j2ee.jalonsod.mtp.request.ParameterInstance |
---|
createParameterInstance, getParameter, getValidationStatus, setParameter, setValidationStatus, setValueAsDefault |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.lang.Double value
Constructor Detail |
---|
public DoubleParameterInstance(Parameter parameter)
Method Detail |
---|
public java.lang.Double getValue()
ParameterInstance
parameterInstance
.
getValue
in class ParameterInstance
parameterInstance
. The datatype varies according to
parameter
subtype from configuration.public void setValue(java.lang.Object value)
ParameterInstance
parameterInstance
.
setValue
in class ParameterInstance
value
- the value of the parameterInstance
. The datatype must be appropiate
according datatype of parameter
metadata from configuration.public void setValue(java.lang.Double value)
value
- the value to set.public java.lang.Double getDefaultValue()
ParameterInstance
getDefaultValue
in class ParameterInstance
public void setStringValue(java.lang.String value) throws MTPException
ParameterInstance
parameterInstance
received in a string and converted to
appropriate datatype.
setStringValue
in class ParameterInstance
value
- the string with the value to convert.
MTPException
- throws when the value cannot be converted to appropriate datatype.public java.lang.String toString()
toString
in class ParameterInstance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |