All Downloads are FREE. Search and download functionalities are using the official Maven repository.

holmos.webtest.junitextentions.parameters.excel.HolmosSheet Maven / Gradle / Ivy

There is a newer version: 1.0.2u10
Show newest version
package holmos.webtest.junitextentions.parameters.excel;

import holmos.webtest.log.MyLogger;

import java.util.ArrayList;

import org.apache.poi.ss.usermodel.Sheet;
/**
 * @author 吴银龙([email protected])
 * */
public class HolmosSheet {
	MyLogger logger = MyLogger.getLogger(HolmosSheet.class);
	private Sheet sheet;
	public HolmosSheet(Sheet sheet){
		this.sheet=sheet;
	}
	
	/**
	 * 取得此Sheet中有效的行数,有效是这么定义的,如果发现第一个空行,则达标此行无效
	 * */
	public int getValidRowCount(){
		return sheet.getLastRowNum()-sheet.getFirstRowNum()+1;
	}
	/**
	 * 获取所有的有效行
	 * */
	public ArrayListgetValidRows(){
		ArrayListvalidRows=new ArrayList();
		for(int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy