Package overit.geocall.ui
Class SimpleParamValidator
java.lang.Object
overit.geocall.ui.SimpleParamValidator
- All Implemented Interfaces:
Serializable,EventValidator
This class implements
This class implements a params validator comes from an event (for example a submit form event).
EventValidator and Serializable.This class implements a params validator comes from an event (for example a submit form event).
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleParamValidator(boolean validateValues) Validator for event without cosntraints for specific paramsSimpleParamValidator(String key, Object value, boolean validateValues) Validator for event with cosntraints for a specific param value -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleantoString()booleanvalidateParams(UIMessage uim) Checks if the parameters are valid or not
-
Field Details
-
key
-
value
-
validateValues
protected boolean validateValues
-
-
Constructor Details
-
SimpleParamValidator
Validator for event with cosntraints for a specific param value- Parameters:
key- the name of the param to be checked against the valuevalue- the value of the param that enable positive validationvalidateValues- if this event need to trigger values validation
-
SimpleParamValidator
public SimpleParamValidator(boolean validateValues) Validator for event without cosntraints for specific params- Parameters:
validateValues- if this event need to trigger values validation
-
-
Method Details
-
validateParams
Description copied from interface:EventValidatorChecks if the parameters are valid or not- Specified by:
validateParamsin interfaceEventValidator- Parameters:
uim- TheUIMessagethat contains the parameters that must be validated- Returns:
trueif the parameters are valid,falseotherwise
-
needValueValidation
public boolean needValueValidation()- Specified by:
needValueValidationin interfaceEventValidator
-
equals
-
hashCode
public int hashCode() -
toString
-