|
||||||||||
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.ParameterConstraintMaxSizeImpl
public class ParameterConstraintMaxSizeImpl
Max parameter constraint implementation
Constructor Summary | |
---|---|
ParameterConstraintMaxSizeImpl()
|
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 |
isSupportedClass(Class<?> clazz)
Checks if the parameter attribute is of a supported class for this constraint to be used |
boolean |
validateConstraint(String value,
IStageInstance stageInstance)
Validates the parameter value passed as a String |
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 ParameterConstraintMaxSizeImpl()
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 isSupportedClass(Class<?> clazz)
IParameterConstraint
clazz
- the class of the attribute on witch the constraint has been applied
IParameterConstraint.isSupportedClass(java.lang.Class)
public boolean validateConstraint(String value, IStageInstance stageInstance)
IParameterConstraint
value
- the value to validatestageInstance
- the current stage in execution
IParameterConstraint.validateConstraint(java.lang.String,
pt.digitalis.dif.dem.interfaces.IStageInstance)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |