public interface DataGeneratorOperation extends ImpexGeneratorOperation
| Modifier and Type | Method and Description |
|---|---|
String |
generateDataLineForAtomicEntry(Map<Integer,String> inputDataLine,
MappingLineModel mappingLine) |
String |
generateDataLineForComposedEntry(Map<Integer,String> inputDataLine,
MappingLineModel mappingLine,
boolean forMainDataFile,
GeneratorOperationState operationState) |
Map<Integer,String> |
generateDataLineForMappingModel(Map<Integer,String> inputDataLine,
MappingModel mappingModel,
GeneratorOperationState operationState)
Generates a line of data that can be then written using a
CSVWriter object. |
String |
generateDataLineForProductAttribEntry(Map<Integer,String> inputDataLine,
MappingLineModel mappingLine) |
getCatalogVersionsForMapping, getGeneratedDocIDReference, getVersionForMappingLine, hasMappedSources, isCatalogItemMap<Integer,String> generateDataLineForMappingModel(Map<Integer,String> inputDataLine, MappingModel mappingModel, GeneratorOperationState operationState) throws IllegalArgumentException
CSVWriter object.
The data is generated from a MappingModel object which contains the mapping between data in a source CSV file and an
item's attributes discriptors.inputDataLine - - A line of data read using a CSVWriter.mappingModel - - A MappingModel object (Source Data - Target Attribute Data) used to generate the data
returned.operationState - - A GeneratorOperationState object used to hold the sate of the data generation process.Map containing data that can be used to write to a CSVWriter. See
CSVReader.parseLine(String) how the map looks like.IllegalArgumentException - - if inputDataLine, mappingModel, operationState is not set to valid data.String generateDataLineForComposedEntry(Map<Integer,String> inputDataLine, MappingLineModel mappingLine, boolean forMainDataFile, GeneratorOperationState operationState) throws IllegalArgumentException
inputDataLine - - A line of data read using a CSVWriter.mappingLine - - A MappingLineModel object (Source Data - Target Attribute Data) used to generate the data
returned.forMainDataFile - - A boolean flag which indicates if the data generated is for the Main CSV file for import or a
generated file (e.g. when composed attributes are generated) that will be a part if the import medias.operationState - - A GeneratorOperationState object used to hold the sate of the data generation process.String object containing a line of data that can be appended to a Map containing data that can be
used to write to a CSVWriter. See CSVReader.parseLine(String) how the map looks like.IllegalArgumentException - - if inputDataLine, mappingModel, operationState is not set to valid data.String generateDataLineForAtomicEntry(Map<Integer,String> inputDataLine, MappingLineModel mappingLine)
inputDataLine - - A line of data read using a CSVWriter.mappingLine - - A MappingLineModel object (Source Data - Target Attribute Data) used to generate the data
returned.String object containing a line of data that can be appended to a Map containing data that can be
used to write to a CSVWriter. See CSVReader.parseLine(String) how the map looks like.String generateDataLineForProductAttribEntry(Map<Integer,String> inputDataLine, MappingLineModel mappingLine)
inputDataLine - - A line of data read using a CSVWriter.mappingLine - - A MappingLineModel object (Source Data - Target Attribute Data) used to generate the data
returned.String object containing a line of data that can be appended to a Map containing data that can be
used to write to a CSVWriter. See CSVReader.parseLine(String) how the map looks like.Copyright © 2017 SAP SE. All Rights Reserved.