Class StringLengthValidator

  • All Implemented Interfaces:
    com.opensymphony.xwork.validator.FieldValidator, com.opensymphony.xwork.validator.ShortCircuitableValidator, com.opensymphony.xwork.validator.Validator

    public class StringLengthValidator
    extends com.opensymphony.xwork.validator.validators.FieldValidatorSupport
    • Field Summary

      • Fields inherited from class com.opensymphony.xwork.validator.validators.ValidatorSupport

        defaultMessage, log, messageKey
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMaxLength()  
      int getMinLength()  
      void setMaxLength​(int maxLength)  
      void setMinLength​(int minLength)  
      void validate​(Object object)  
      • Methods inherited from class com.opensymphony.xwork.validator.validators.FieldValidatorSupport

        getFieldName, setFieldName
      • Methods inherited from class com.opensymphony.xwork.validator.validators.ValidatorSupport

        addActionError, addFieldError, getDefaultMessage, getFieldValue, getMessage, getMessageKey, getValidatorContext, isShortCircuit, setDefaultMessage, setMessageKey, setShortCircuit, setValidatorContext
      • Methods inherited from interface com.opensymphony.xwork.validator.Validator

        getDefaultMessage, getMessage, getMessageKey, getValidatorContext, setDefaultMessage, setMessageKey, setValidatorContext
    • Constructor Detail

      • StringLengthValidator

        public StringLengthValidator()
    • Method Detail

      • validate

        public void validate​(Object object)
                      throws com.opensymphony.xwork.validator.ValidationException
        Throws:
        com.opensymphony.xwork.validator.ValidationException
      • getMaxLength

        public int getMaxLength()
      • setMaxLength

        public void setMaxLength​(int maxLength)
      • getMinLength

        public int getMinLength()
      • setMinLength

        public void setMinLength​(int minLength)