java.lang.Object
com.tectonica.jonix.tabulate.FieldTabulatorFactory<P>
- Type Parameters:
P
- the class representing the ONIX Product record
- Direct Known Subclasses:
FieldTabulatorFactory.Plural
,FieldTabulatorFactory.Singular
Utility class, which acts as a base-class for
FieldTabulatorFactory.Singular
and FieldTabulatorFactory.Plural
, both of which are user-facing
factories for creating FieldTabulator
given the field's column names, tabulation function, and the amount
of required occurrences. When more than one occurrence is desired, this class will create a header with indexed
values of the column names (e.g. "Author" times 3 will become "Author1", "Author2", "Author3")
Users may subclass this class for similar purposes.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
User-facing factory for creating aFieldTabulator
given the field's column names, tabulation function, and the amount of required occurrences.static class
User-facing factory for creating aFieldTabulator
given the field's column names and tabulation function. -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
FieldTabulatorFactory
(String column, FieldRowSupplier<P> rowSupplier) protected
FieldTabulatorFactory
(Collection<String> columns, FieldRowSupplier<P> rowSupplier) -
Method Summary
Modifier and TypeMethodDescriptioncreateHeader
(int numOfSets) protected String
indexedColumnName
(String column, int setNumber)
-
Field Details
-
columns
-
rowSupplier
-
-
Constructor Details
-
FieldTabulatorFactory
-
FieldTabulatorFactory
-
-
Method Details
-
createHeader
-
indexedColumnName
-