|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IParameterConstraint
Method Summary | |
---|---|
void |
configureConstraint(String configurationString)
Configures the constraint. |
String |
getJavaScriptValidationCondition()
Builds a JavaScript boolean expression to check this constraint. |
ParameterConstraintResult |
getValidationResult(Object value,
IStageInstance stageInstance)
Get the Validation result, Validates the parameter value passed in it's native type |
boolean |
isSupportedClass(Class<?> clazz)
Checks if the parameter attribute is of a supported class for this constraint to be used |
boolean |
validateConstraint(Object value,
IStageInstance stageInstance)
Validates the parameter value passed in it's native type |
boolean |
validateConstraint(String value,
IStageInstance stageInstance)
Validates the parameter value passed as a String |
String |
validationErrorMessage()
Get a description on why the validation fails |
String |
validationErrorMessage(boolean parseValues)
Get a description on why the validation fails |
String |
validationErrorMessage(boolean parseValues,
String language)
Get a description on why the validation fails |
String |
validationErrorMessage(String language)
Get a description on why the validation fails |
Method Detail |
---|
void configureConstraint(String configurationString)
configurationString
- String getJavaScriptValidationCondition()
ParameterConstraintResult getValidationResult(Object value, IStageInstance stageInstance)
value
- the value to validatestageInstance
- the current stage in execution
boolean isSupportedClass(Class<?> clazz)
clazz
- the class of the attribute on witch the constraint has been applied
boolean validateConstraint(Object value, IStageInstance stageInstance)
value
- the value to validatestageInstance
- the current stage in execution
boolean validateConstraint(String value, IStageInstance stageInstance)
value
- the value to validatestageInstance
- the current stage in execution
String validationErrorMessage()
String validationErrorMessage(boolean parseValues)
parseValues
- if T will replace the current parameter value in the message. Otherwise return the untouched message
for custom parsing
String validationErrorMessage(boolean parseValues, String language)
parseValues
- if T will replace the current parameter value in the message. Otherwise return the untouched message
for custom parsinglanguage
- the language on witch to create the error message
String validationErrorMessage(String language)
language
- the language on witch to create the error message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |