Class ChineseCellphoneValidator

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

    public class ChineseCellphoneValidator
    extends java.lang.Object
    implements org.springframework.validation.Validator
    Validates the cellphone in Chinese address.
    • Constructor Detail

      • ChineseCellphoneValidator

        public ChineseCellphoneValidator​(ChineseAddressFacade chineseAddressFacade)
    • 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 object,
                             org.springframework.validation.Errors errors)
        Specified by:
        validate in interface org.springframework.validation.Validator