public AttributesValidationResult validate()

in src/main/java/com/aliyun/mns/model/MessageAttributes.java [31:64]


    public AttributesValidationResult validate() {
        AttributesValidationResult result;
        if (mailAttributes != null) {
            result = mailAttributes.validate();
            if (!result.isSuccess()) {
                return result;
            }
        }

        if (dayuAttributes != null) {
            result = dayuAttributes.validate();
            if (!result.isSuccess()) {
                return result;
            }
        }

        if (smsAttributes != null) {
            result = smsAttributes.validate();
            if (!result.isSuccess()) {
                return result;
            }
        }

        if (pushAttributes != null) {
            result = pushAttributes.validate();
            if (!result.isSuccess()) {
                return result;
            }
        }

        result = new AttributesValidationResult();
        result.setSuccess(true);
        return result;
    }