Class EmailLanguageValidator

  • All Implemented Interfaces:
    org.springframework.validation.Validator

    public class EmailLanguageValidator
    extends java.lang.Object
    implements org.springframework.validation.Validator
    Validates the email language iso code.
    • Constructor Detail

      • EmailLanguageValidator

        public EmailLanguageValidator​(StoreSessionFacade storeSessionFacade)
    • Method Detail

      • supports

        public boolean supports​(java.lang.Class<?> clazz)
        Specified by:
        supports in interface org.springframework.validation.Validator
      • validate

        public void validate​(java.lang.Object obj,
                             org.springframework.validation.Errors errors)
        Specified by:
        validate in interface org.springframework.validation.Validator
      • getLanguages

        protected java.util.Collection<LanguageData> getLanguages()