Uses of Class
org.aoju.bus.core.beans.PropertyDesc
Packages that use PropertyDesc
Package
Description
Bean相关操作,包括Bean信息描述,Bean路径表达式、动态Bean等
工具包,提供各种工具方法,按照归类入口为XXXKit,如数组工具ArrayKit等
-
Uses of PropertyDesc in org.aoju.bus.core.beans
Methods in org.aoju.bus.core.beans that return PropertyDescModifier and TypeMethodDescription获取属性,如果不存在返回null设置Bean的字段值 首先调用字段对应的Setter方法,如果Setter方法不存在,则判断字段如果为public,则直接赋值字段值 此方法不检查任何注解,使用前需调用isWritable(boolean)检查是否可写设置属性值,可以自动转换字段类型为目标类型PropertyDesc.setValue(Object bean, Object value, boolean ignoreNull, boolean ignoreError, boolean override) 设置属性值,可以自动转换字段类型为目标类型Methods in org.aoju.bus.core.beans that return types with arguments of type PropertyDescModifier and TypeMethodDescriptionBeanDesc.getPropMap(boolean ignoreCase) 获取字段名-字段属性MapBeanDesc.getProps()获取字段属性列表 -
Uses of PropertyDesc in org.aoju.bus.core.toolkit
Method parameters in org.aoju.bus.core.toolkit with type arguments of type PropertyDescModifier and TypeMethodDescriptionstatic voidBeanKit.descForEach(Class<?> clazz, Consumer<? super PropertyDesc> action) 遍历Bean的属性static voidBeanKit.forEach(Class<?> clazz, Consumer<? super PropertyDesc> action) 遍历Bean的属性