public class TabularReportUtil
extends java.lang.Object
Constructor and Description |
---|
TabularReportUtil() |
Modifier and Type | Method and Description |
---|---|
static TabularReport |
filterRowsByColumn(TabularReport report,
java.lang.String columnLabel,
java.lang.String match,
boolean isRegexp)
This can be used to filter the rows by column labels
If the filtering is to be done based on a regular expression then it should be specified as such.
|
static TabularReport |
filterRowsByColumnOnContainsValue(TabularReport report,
java.lang.String columnLabel,
java.util.List<java.lang.String> matchStrArray,
boolean isRegexp,
boolean isSubset)
This method is used to filter the rows by column labels give a list of matching string values
|
static int |
getColumnIndex(TabularReport report,
java.lang.String columnLabel)
Returns the column index for the given column label in the report
|
public static TabularReport filterRowsByColumn(TabularReport report, java.lang.String columnLabel, java.lang.String match, boolean isRegexp)
report
- - the report to be filteredcolumnLabel
- - the column label on which the filtering is to be performedmatch
- - the matching word to be filteredisRegexp
- - is it a regular expressionpublic static TabularReport filterRowsByColumnOnContainsValue(TabularReport report, java.lang.String columnLabel, java.util.List<java.lang.String> matchStrArray, boolean isRegexp, boolean isSubset)
report
- - the report to be filteredcolumnLabel
- - the column label on which the filtering is to be donematchStrArray
- - the matching string listisRegexp
- - is this a regular expressionisSubset
- - is this a subsetpublic static int getColumnIndex(TabularReport report, java.lang.String columnLabel)
report
- - the reportcolumnLabel
- - the columnLabel