Excel解析与数据生成(撑持JXL,POI)

[代码] 运用注解 注解与需求生成Excel目标上 public class Excel {

	@ExcelAnnotation("称号")
	public String bookName;
 http://www.fpfuzhou.com/linked/20130205.do http://www.fpzhuhai.com/linked/20130205.do; ; 

	@ExcelAnnotation("行数")
	public int rows;

	@ExcelAnnotation("创立时刻")
	public Date createTime;
	
	@ExcelAnnotation("内容")
	public Date content;

	
	public Date getContent() {
		return content;
	}

	public void setContent(Date content) {
		this.content = content;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("{[bookName : "   (null == bookName ? "" : bookName)
				  "]");
		buffer.append("[rows : "   rows   "]");
		buffer.append("[createTime : "
				  (null == createTime ? "" : DateTools.format(createTime))
				  "]}");
		return buffer.toString();
	}

}
posted @ 2013-02-06 05:30  chinadiy197601  阅读(240)  评论(0编辑  收藏  举报