# 程序包org.springframework.validation的分层结构

程序包分层结构:

- 所有程序包

## 类分层结构

- java.lang.Object
  - org.springframework.validation.AbstractErrors (implements org.springframework.validation.Errors, java.io.Serializable)
    - org.springframework.validation.AbstractBindingResult (implements org.springframework.validation.BindingResult, java.io.Serializable)
      - org.springframework.validation.AbstractPropertyBindingResult
        - org.springframework.validation.BeanPropertyBindingResult (implements java.io.Serializable)
        - org.springframework.validation.DirectFieldBindingResult
      - org.springframework.validation.MapBindingResult (implements java.io.Serializable)
  - org.springframework.validation.BindingResultUtils
  - org.springframework.validation.DataBinder (implements org.springframework.beans.PropertyEditorRegistry, org.springframework.beans.TypeConverter)
  - org.springframework.validation.DefaultBindingErrorProcessor (implements org.springframework.validation.BindingErrorProcessor)
  - org.springframework.validation.DefaultMessageCodesResolver (implements org.springframework.validation.MessageCodesResolver, java.io.Serializable)
  - org.springframework.context.support.DefaultMessageSourceResolvable (implements org.springframework.context.MessageSourceResolvable, java.io.Serializable)
    - org.springframework.validation.ObjectError
      - org.springframework.validation.FieldError
  - java.lang.Throwable (implements java.io.Serializable)
    - java.lang.Exception
      - org.springframework.validation.BindException (implements org.springframework.validation.BindingResult)
  - org.springframework.validation.ValidationUtils

## 接口分层结构

- org.springframework.validation.BindingErrorProcessor
- org.springframework.validation.Errors
  - org.springframework.validation.BindingResult
- org.springframework.validation.MessageCodeFormatter
- org.springframework.validation.MessageCodesResolver
- org.springframework.validation.Validator
  - org.springframework.validation.SmartValidator

## 枚举分层结构

- java.lang.Object
  - java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
    - org.springframework.validation.DefaultMessageCodesResolver.Format (implements org.springframework.validation.MessageCodeFormatter)