Class SimpleParamValidator

java.lang.Object
overit.geocall.ui.SimpleParamValidator
All Implemented Interfaces:
Serializable, EventValidator

public class SimpleParamValidator extends Object implements EventValidator, Serializable
This class implements EventValidator and Serializable.
This class implements a params validator comes from an event (for example a submit form event).
See Also:
  • Field Details

    • key

      protected String key
    • value

      protected Object value
    • validateValues

      protected boolean validateValues
  • Constructor Details

    • SimpleParamValidator

      public SimpleParamValidator(String key, Object value, boolean validateValues)
      Validator for event with cosntraints for a specific param value
      Parameters:
      key - the name of the param to be checked against the value
      value - the value of the param that enable positive validation
      validateValues - 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