|
||||||||||
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.constraints.AbstractParameterConstraint pt.digitalis.dif.dem.objects.parameters.constraints.impl.numeric.AbstractNumericParameterConstraint pt.digitalis.dif.dem.objects.parameters.constraints.impl.numeric.ParameterConstraintMaxImpl
public class ParameterConstraintMaxImpl
Max parameter constraint implementation
Constructor Summary | |
---|---|
ParameterConstraintMaxImpl()
|
Method Summary | |
---|---|
void |
configureConstraint(String configurationString)
Configures the constraint. |
protected Map<String,String> |
getErrorMessageValues(boolean parseValues)
Compiles all values to be parsed in the error message to be generated on request |
String |
getJavaScriptValidationCondition()
Builds a JavaScript boolean expression to check this constraint. |
boolean |
validateConstraint(Double value,
IStageInstance stageInstance)
Validate method with the value converted to a Double |
Methods inherited from class pt.digitalis.dif.dem.objects.parameters.constraints.impl.numeric.AbstractNumericParameterConstraint |
---|
isSupportedClass, validateConstraint |
Methods inherited from class pt.digitalis.dif.dem.objects.parameters.constraints.AbstractParameterConstraint |
---|
getErrorIDs, getMessages, getValidationResult, validateConstraint, validationErrorMessage, validationErrorMessage, validationErrorMessage, validationErrorMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParameterConstraintMaxImpl()
Method Detail |
---|
public void configureConstraint(String configurationString)
IParameterConstraint
IParameterConstraint.configureConstraint(java.lang.String)
protected Map<String,String> getErrorMessageValues(boolean parseValues)
AbstractParameterConstraint
getErrorMessageValues
in class AbstractParameterConstraint
parseValues
- if T will replace the current parameter value in the message. Otherwise return the untouched message
for custom parsing
AbstractParameterConstraint.getErrorMessageValues(boolean)
public String getJavaScriptValidationCondition()
IParameterConstraint
IParameterConstraint.getJavaScriptValidationCondition()
public boolean validateConstraint(Double value, IStageInstance stageInstance)
AbstractNumericParameterConstraint
validateConstraint
in class AbstractNumericParameterConstraint
value
- the value to comparestageInstance
- the current stage in execution
AbstractNumericParameterConstraint.validateConstraint(java.lang.Double,
pt.digitalis.dif.dem.interfaces.IStageInstance)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |