add SheetDataWriter and SheetTemplateWriter

This commit is contained in:
Looly
2024-08-25 22:25:00 +08:00
parent e67f37fc2f
commit c2e0da7182
11 changed files with 605 additions and 318 deletions

View File

@@ -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!");