public class MergedColumnAndHeaderFilter extends Object implements WorksheetPredicate
Row
that is a bunch of merged columns or the header row or is an Empty Row (Empty row is where all cells in the row are empty)
dropHeaderRows
to change this.Constructor and Description |
---|
MergedColumnAndHeaderFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Object object) |
boolean |
evaluate(Object object,
org.apache.poi.ss.usermodel.Sheet worksheet)
Return false if its a header or a merged set of columns
|
int |
getDropHeaderRows()
Usually Sheets have a header, drop
dropHeaderRows from the top. |
org.apache.poi.ss.usermodel.Sheet |
getWorksheet()
check if a
Sheet has been set |
boolean |
isConsiderStringBlankCellsAsEmpty()
When filtering if row is found to have Cells String but BLANK then also consider them to be empty.
Note: A Blank is none or more SPACE characters |
boolean |
isDropRowsWithOnlyFirstColumn()
Usually some rows maybe delimited by a Delimiter Row that can only have one value in its 0th col,
drop them
|
void |
setConsiderStringBlankCellsAsEmpty(boolean considerStringBlankCellsAsEmpty)
When filtering if row is found to have Cells String but BLANK then also consider them to be empty.
Note: A Blank is none or more SPACE characters |
void |
setDropHeaderRows(int dropHeaderRows)
Usually Sheets have a header, drop
dropHeaderRows from the top. |
void |
setDropRowsWithOnlyFirstColumn(boolean dropRowsWithOnlyFirstColumn)
Usually some rows maybe delimited by a Delimiter Row that can only have one value in its 0th col,
drop them
|
void |
setWorksheet(org.apache.poi.ss.usermodel.Sheet worksheet)
Deprecated.
|
public boolean evaluate(Object object)
evaluate
in interface org.apache.commons.collections.Predicate
public boolean evaluate(Object object, org.apache.poi.ss.usermodel.Sheet worksheet)
evaluate
in interface WorksheetPredicate
public org.apache.poi.ss.usermodel.Sheet getWorksheet()
Sheet
has been setgetWorksheet
in interface WorksheetPredicate
@Deprecated public void setWorksheet(org.apache.poi.ss.usermodel.Sheet worksheet)
public int getDropHeaderRows()
dropHeaderRows
from the top.public void setDropHeaderRows(int dropHeaderRows)
dropHeaderRows
from the top.public boolean isConsiderStringBlankCellsAsEmpty()
public void setConsiderStringBlankCellsAsEmpty(boolean considerStringBlankCellsAsEmpty)
public boolean isDropRowsWithOnlyFirstColumn()
public void setDropRowsWithOnlyFirstColumn(boolean dropRowsWithOnlyFirstColumn)
Copyright © 2018. All rights reserved.