注释类型 OverrideViewProperty


  • @Target({FIELD,METHOD})
    @Retention(SOURCE)
    public @interface OverrideViewProperty
    Change a exist property.
    If put on a field, the type of the field should be convertible from the original type.
    Here are three cases:
    1. The field type can be assigned by the original type.
    2. Specialize a suitable converter to manually convert the original type to the field type.
    3. The field type is the DTO version of the original type. Or the field type is the Array, List, Set, Stack, Map of DTO version of the original type and their composition, and they share the same shape. For example: BeanDTO vs Bean, List<BeanDTO> vs List<Bean>, Map<String, Set<BeanDTO> vs Map<String, Set<Bean>
    另请参阅:
    NewViewProperty
    • 必需元素概要

      所需元素 
      修饰符和类型 必需的元素 说明
      String value
      The original property name.
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      Access getter
      The access type of the getter methods.
      Access setter
      The access type of the setter methods.
    • 元素详细资料

      • value

        String value
        The original property name.
        返回:
        The original property name.
      • getter

        Access getter
        The access type of the getter methods. By default, inherited from the ViewOf or ViewProperty annotation.
        返回:
        the access type of the getter methods
        默认值:
        io.github.vipcxj.beanknife.runtime.annotations.Access.UNKNOWN
      • setter

        Access setter
        The access type of the setter methods. By default, inherited from the ViewOf or ViewProperty annotation.
        返回:
        the access type of the setter methods
        默认值:
        io.github.vipcxj.beanknife.runtime.annotations.Access.UNKNOWN