mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add SheetDataWriter and SheetTemplateWriter
This commit is contained in:
@@ -88,6 +88,16 @@ public class BeanMap implements Map<String, Object> {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取Path表达式对应的值
|
||||
*
|
||||
* @param expression Path表达式
|
||||
* @return 值
|
||||
*/
|
||||
public Object getProperty(final String expression) {
|
||||
return BeanUtil.getProperty(bean, expression);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object put(final String key, final Object value) {
|
||||
final PropDesc propDesc = this.propDescMap.get(key);
|
||||
@@ -99,6 +109,16 @@ public class BeanMap implements Map<String, Object> {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置Path表达式对应的值
|
||||
*
|
||||
* @param expression Path表达式
|
||||
* @param value 新值
|
||||
*/
|
||||
public void putProperty(final String expression, final Object value) {
|
||||
BeanUtil.setProperty(bean, expression, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object remove(final Object key) {
|
||||
throw new UnsupportedOperationException("Can not remove field for Bean!");
|
||||
|
Reference in New Issue
Block a user