当前位置:编程学习 > JAVA >>

英文不好,看API有点不明白

org.apache.commons.beanutils下的copyProperty中
Property name (can be nested/indexed/mapped/combo)nested 和combo是什么东东来的

public static void copyProperty(Object bean,
                                String name,
                                Object value)
                         throws IllegalAccessException,
                                InvocationTargetException
Copy the specified property value to the specified destination bean, performing any type conversion that is required.

For more details see BeanUtilsBean.

Parameters:
bean - Bean on which setting is to be performed
name - Property name (can be nested/indexed/mapped/combo)
value - Value to be set --------------------编程问答-------------------- nested是可以嵌套
比如java中有nested class

combo是可以组合使用,combination这个单词知道吧 --------------------编程问答-------------------- 这个包我正在用呢,很好用,一般用于实体类的属性值copy,
用在PO与VO居多,两个实体类必须有相同的属性(类型相同,属性名相同)。
补充:Java ,  Java EE
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,