当前位置:七道奇文章资讯编程技术Java编程
日期:2011-03-22 16:13:00  来源:本站整理

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编程]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:

  • Jakarta Struts操纵的七个经验
  • Jakarta-Common-Math操纵笔记
  • Jakarta-Common-JXPath操纵笔记
  • Jakarta-Common-IO操纵笔记
  • Jakarta-Common-Digester操纵笔记
  • <b>Jakarta-Common-Configuration操纵笔记</b>
  • Jakarta-Common-Codec操纵笔记
  • <b>Jakarta-Common-CLI操纵笔记</b>
  • Jakarta-Common-Chain操纵笔记
  • Jakarta-Common-BetWixt操纵笔记
  • Jakarta-Common-BeanUtils操纵笔记
  • 本文地址: 与您的QQ/BBS好友分享!
    • 好的评价 如果您觉得此文章好,就请您
        0%(0)
    • 差的评价 如果您觉得此文章差,就请您
        0%(0)

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    Copyright © 2020-2022 www.xiamiku.com. All Rights Reserved .