java.lang.Object
de.hybris.platform.coretravelbasewebservicescommons.validators.AbstractTravelValidator
de.hybris.platform.coretravelbasewebservicescommons.validators.RegexpValidator
All Implemented Interfaces:
TravelValidator, org.springframework.validation.Validator

public class RegexpValidator extends AbstractTravelValidator
Construct the validator for a single regular expression from configuration.
  • Constructor Details

    • RegexpValidator

      public RegexpValidator()
  • Method Details

    • supports

      public boolean supports(Class<?> clazz)
    • validate

      public void validate(Object target, org.springframework.validation.Errors errors)
    • getRegularExpression

      protected String getRegularExpression()
      Gets regular expression.
      Returns:
      the regular expression
    • setRegularExpression

      public void setRegularExpression(String regularExpression)
      Sets regular expression.
      Parameters:
      regularExpression - regular expression