org.springframework.validation

## 接口 MessageCodeFormatter

- 所有已知实现类:
    DefaultMessageCodesResolver.Format

      public interface MessageCodeFormatter

  A strategy interface for formatting message codes.
  从以下版本开始:
    3.2
  作者:
    Chris Beams
  另请参阅:
    `DefaultMessageCodesResolver`, `DefaultMessageCodesResolver.Format`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `format(String errorCode, String objectName, String field)` Build and return a message code consisting of the given fields, usually delimited by `DefaultMessageCodesResolver.CODE_SEPARATOR`.

- - ### 方法详细资料

    - #### format

          String format(String errorCode,
                        @Nullable
                        String objectName,
                        @Nullable
                        String field)

      Build and return a message code consisting of the given fields, usually delimited by `DefaultMessageCodesResolver.CODE_SEPARATOR`.
      参数:
        `errorCode` - e.g.: "typeMismatch"
        `objectName` - e.g.: "user"
        `field` - e.g. "age"
      返回:
        concatenated message code, e.g.: "typeMismatch.user.age"
      另请参阅:
        `DefaultMessageCodesResolver.Format`