public static class CSVFieldNameMappingParser.Builder extends AbstractCSVMappingParser.MemberBuilder
format
classNameColumn
Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
CSVFieldNameMappingParser |
build(String originalNameColumn,
String targetNameColumn) |
Constructs a new CSV field name mapping parser using the configuration within this builder.
|
CSVFieldNameMappingParser.Builder |
withClassNameColumn(String columnName) |
Selects the column in which the enclosing class name will be found.
|
CSVFieldNameMappingParser.Builder |
withFormat(org.apache.commons.csv.CSVFormat format) |
Selects a CSV format to rely upon when parsing file or stream contents.
|
CSVFieldNameMappingParser.Builder |
withSignatureColumn(String columnName) |
Selects the column in which the ASM signature for the field will be found.
|
@NonNull public CSVFieldNameMappingParser build(@NonNull String originalNameColumn, @NonNull String targetNameColumn)
originalNameColumn
- the name of the column in which the original field name is stored.targetNameColumn
- the name of the column in which the target field name is stored.@NonNull public CSVFieldNameMappingParser.Builder withClassNameColumn(@Nullable String columnName)
Selects the column in which the enclosing class name will be found.
If none is specified (e.g. this method is not called at all or null is passed), the resulting mapper will attempt to match a member based on any other configured factors).
withClassNameColumn
in class AbstractCSVMappingParser.MemberBuilder
columnName
- a column name.@NonNull public CSVFieldNameMappingParser.Builder withFormat(@NonNull org.apache.commons.csv.CSVFormat format)
withFormat
in class AbstractCSVMappingParser.Builder
format
- a CSV format.@NonNull public CSVFieldNameMappingParser.Builder withSignatureColumn(@Nullable String columnName)
Selects the column in which the ASM signature for the field will be found.
If none is specified (e.g. this method is not called at all or null is passed), the resulting mapper will only evaluate whether or not the field name and class name match (assuming that a class name index was configured).
columnName
- a column name.Copyright © 2018 Basin. All rights reserved.