Class InboundCsvTransformer
java.lang.Object
com.onenetwork.platform.integ.msg.InboundCsvTransformer
- All Implemented Interfaces:
CsvTransformer
,Transformer
public class InboundCsvTransformer extends java.lang.Object implements CsvTransformer
Base class for all CsvTransformers, extending this class allows us to add more methods without breaking backward compatibility.
-
Constructor Summary
Constructors Constructor Description InboundCsvTransformer()
-
Method Summary
Modifier and Type Method Description void
transform(CsvRow row, CsvTransformContext context)
Transforms values within a mutable CsvRow.
-
Constructor Details
-
InboundCsvTransformer
public InboundCsvTransformer()
-
-
Method Details
-
transform
Transforms values within a mutable CsvRow. In some situations there might be two columns with the same name in a single CSV, for example "State" in ShipmentHeader and ShipmentLine. In situations like these, fields with a conflict will be prefixed with their level name, "ShipmentHeader.State" and "ShipmentLine.State". Fields without such a conflict will be listed without this prefix, for example "ShipmentNumber".- Specified by:
transform
in interfaceCsvTransformer
- Parameters:
row
- row to be transformed - use theCsvRow.set(String, String)
method to change values on this rowcontext
- provides contextual information around the current CSV Transformation- Throws:
implementers
- should throw this exception if there is any problem transforming the rowCsvTransformException
-