|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.dem.objects.parameters.types.AbstractParameter<Boolean> pt.digitalis.dif.dem.objects.parameters.types.BooleanParameter
public class BooleanParameter
This class will define a numeric Parameter.
It will hold information relative to the Parameter value, ID key and validation constraints.
Constructor Summary | |
---|---|
BooleanParameter()
|
Method Summary | |
---|---|
List<String> |
getSupportedClasses()
|
Boolean |
getValue(IDIFContext context)
Returns the parameter value. |
BigDecimal |
getValueAsBigDecimal(IDIFContext context)
|
boolean |
getValueAsBoolean(IDIFContext context)
|
Date |
getValueAsDate(IDIFContext context)
|
Double |
getValueAsDouble(IDIFContext context)
|
Long |
getValueAsLong(IDIFContext context)
|
String |
getValueAsString(IDIFContext context)
Returns the parameter value as a String |
boolean |
isNumeric()
|
ParameterErrorList |
setValueFromString(String value,
IStageInstance stageInstance,
boolean initializationInProgress)
Sets the value of the parameter converting if from a string representation and runs all constraints and validations |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BooleanParameter()
Method Detail |
---|
public List<String> getSupportedClasses()
IParameter.getSupportedClasses()
public Boolean getValue(IDIFContext context) throws ParameterException
IParameter
getValue
in interface IParameter<Boolean>
getValue
in class AbstractParameter<Boolean>
context
- the DIF context to read if needed
ParameterException
- if the parameter could not be readAbstractParameter.getValue(pt.digitalis.dif.controller.interfaces.IDIFContext)
public BigDecimal getValueAsBigDecimal(IDIFContext context) throws ParameterException
context
- the DIF context to read if needed
ParameterException
- if a conversion error occursIParameter.getValueAsBigDecimal(pt.digitalis.dif.controller.interfaces.IDIFContext)
public boolean getValueAsBoolean(IDIFContext context) throws ParameterException
context
- the DIF context to read if needed
ParameterException
- if the parameter value cannot be readIParameter.getValueAsBoolean(IDIFContext)
public Date getValueAsDate(IDIFContext context)
context
- the DIF context to read if needed
IParameter.getValueAsDate(IDIFContext)
public Double getValueAsDouble(IDIFContext context) throws ParameterException
context
- the DIF context to read if needed
ParameterException
- if a conversion error occursIParameter.getValueAsDouble(IDIFContext)
public Long getValueAsLong(IDIFContext context) throws ParameterException
context
- the DIF context to read if needed
ParameterException
- if a conversion error occursIParameter.getValueAsLong(IDIFContext)
public String getValueAsString(IDIFContext context) throws ParameterException
IParameter
getValueAsString
in interface IParameter<Boolean>
getValueAsString
in class AbstractParameter<Boolean>
context
- the DIF context to read if needed
ParameterException
- if the parameter value cannot be readAbstractParameter.getValueAsString(pt.digitalis.dif.controller.interfaces.IDIFContext)
public boolean isNumeric()
IParameter.isNumeric()
public ParameterErrorList setValueFromString(String value, IStageInstance stageInstance, boolean initializationInProgress)
IParameter
value
- the value to setstageInstance
- the DIF stage to read if needed.initializationInProgress
- T if called within the dif parameter initialization
IParameter.setValueFromString(java.lang.String,
pt.digitalis.dif.dem.interfaces.IStageInstance, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |