| Package | Description |
|---|---|
| com.lc.core.bean |
| Modifier and Type | Method and Description |
|---|---|
BeanDesc.PropDesc |
BeanDesc.getProp(String fieldName)
获取属性,如果不存在返回null
|
BeanDesc.PropDesc |
BeanDesc.PropDesc.setValue(Object bean,
Object value)
设置Bean的字段值
首先调用字段对应的Setter方法,如果Setter方法不存在,则判断字段如果为public,则直接赋值字段值 |
| Modifier and Type | Method and Description |
|---|---|
Map<String,BeanDesc.PropDesc> |
BeanDesc.getPropMap(boolean ignoreCase)
获取字段名-字段属性Map
|
Collection<BeanDesc.PropDesc> |
BeanDesc.getProps()
获取字段属性列表
|
Copyright © 2020. All rights reserved.