public class DataRecordSourceReportBuilder
extends java.lang.Object
Copyright 2008 Partner Software
| Constructor and Description |
|---|
DataRecordSourceReportBuilder(DataRecordSource data)
Creates a new DataRecordSourceReportBuilder for the passed DataRecordSource.
|
DataRecordSourceReportBuilder(java.util.List<Naming> records)
Creates a new DataRecordSourceReportBuilder for the passed list of Namings.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
buildHtmlReport(java.lang.String docName)
Generates an html report containing a table with all fields
|
java.lang.String |
buildHtmlReport(java.lang.String docName,
int... fieldIndex)
Generates an html report containing a table with only the field
indexes passed as parameters.
|
java.lang.String |
buildHtmlReport(java.lang.String docName,
java.lang.String... fieldNames)
Generates an html report containing a table with only the fields
passed as parameters.
|
java.lang.String |
buildHtmlTable()
Generates an html table containing all fields
|
java.lang.String |
buildHtmlTable(int... fieldIndex)
Generates an html table with only the fields whose
indexes were passed as parameters.
|
java.lang.String |
buildHtmlTable(java.lang.String... fieldNames)
Generates an html table containing only the fields
passed as parameters.
|
int |
countField(java.lang.String fieldName,
java.lang.Object value)
Returns the total # of occurrences of the passed field name
with the passed value in the data record source.
|
java.util.List<Naming> |
filterData(int... fieldIndex)
Returns a list of Namings containing only the field indexes passed in.
|
java.util.List<Naming> |
filterData(java.lang.String... fieldName)
Returns a list of Namings containing only the fields passed in.
|
public DataRecordSourceReportBuilder(DataRecordSource data)
data - - A DataRecordSource.public DataRecordSourceReportBuilder(java.util.List<Naming> records)
public java.util.List<Naming> filterData(java.lang.String... fieldName)
fieldName - - Any field name to include in returned value.public java.util.List<Naming> filterData(int... fieldIndex)
fieldIndex - - Any field index to include in returned value.public java.lang.String buildHtmlReport(java.lang.String docName,
java.lang.String... fieldNames)
docName - - String name to give to document.fieldNames - - Field names to show in report.public java.lang.String buildHtmlReport(java.lang.String docName)
docName - - String name to give to document.public java.lang.String buildHtmlReport(java.lang.String docName,
int... fieldIndex)
docName - - String name to give to document.fieldIndex - - Field indexes to show in report.public java.lang.String buildHtmlTable(int... fieldIndex)
fieldIndex - - Field indexes to show in report.public java.lang.String buildHtmlTable(java.lang.String... fieldNames)
fieldNames - - Field names to show in report.public java.lang.String buildHtmlTable()
public int countField(java.lang.String fieldName,
java.lang.Object value)
fieldName - - Field name to look for.value - - Value to track in records.