Jakarta-Common-BeanUtils操纵笔记[Java编程]
本文“Jakarta-Common-BeanUtils操纵笔记[Java编程]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
下载地址:http://commons.apache.org/beanutils/
例子以下:
新建Bean:
package demo.bean;
import java.util.ArrayList;
import java.util.HashMap;
public class Company ...{
private String name;
private HashMap<String, String> address = new HashMap<String, String>();
private String[] otherInfo;
private ArrayList<String> product;
private ArrayList<String> employee;
private HashMap<String, String> telephone;
public String getName() ...{
return name;
}
public void setName(String name) ...{
this.name = name;
}
public HashMap<String, String> getAddress() ...{
return address;
}
public void setAddress(HashMap<String, String> address) ...{
this.address = address;
}
public String[] getOtherInfo() ...{
return otherInfo;
}
public void setOtherInfo(String[] otherInfo) ...{
this.otherInfo = otherInfo;
}
public ArrayList<String> getProduct() ...{
return product;
}
public void setProduct(ArrayList<String> product) ...{
this.product = product;
}
public ArrayList<String> getEmployee() ...{
return employee;
}
public void setEmployee(ArrayList<String> employee) ...{
this.employee = employee;
}
public HashMap<String, String> getTelephone() ...{
return telephone;
}
public void setTelephone(HashMap<String, String> telephone) ...{
this.telephone = telephone;
}
}
以上是“Jakarta-Common-BeanUtils操纵笔记[Java编程]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |