@Component(value="blDefaultCellProcessor") public class PassthroughCellProcessor extends BroadleafCellProcessorAdaptor
This does not process the value in a column at all but just returns it back as it appears in the CSV file.
This is the default BroadleafCellProcessor
used by the CSVFileImportProcessor
if no other processors
can handle a column. This can handle all columns.
Constructor and Description |
---|
PassthroughCellProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(String header,
ImportType importType)
Determines if this processor can be used to handle the given header within the context of an import of the
given importingClass
|
ColumnParseResult |
execute(String value,
BroadleafCsvContext context)
Parses out the String value that appears in the CSV file.
|
int |
getOrder() |
execute
public boolean canHandle(String header, ImportType importType)
BroadleafCellProcessor
header
- the header that appears in the CSVimportType
- the type of importpublic ColumnParseResult execute(String value, BroadleafCsvContext context)
BroadleafCellProcessor
ColumnParseResult
. The ColumnParseResult.getVal()
could be
null.value
- the raw value that was parsed out of the CSV row, could be null if the value was ommittedcontext
- the context that the value appears in in relation to the rest of the lineColumnParseResult
indicating either the parsed value or sub-persistence packages that
should be executedpublic int getOrder()
getOrder
in interface org.springframework.core.Ordered
getOrder
in class BroadleafCellProcessorAdaptor
Copyright © 2020. All rights reserved.