Class ModelOutboundCsvTransformer
java.lang.Object
com.onenetwork.platform.integ.msg.ModelOutboundCsvTransformer
@Deprecated
public class ModelOutboundCsvTransformer
extends java.lang.Object
Deprecated.
Base class for all Model based CsvTransformers, extending this class allows us to add more methods without breaking backward compatibility.
This class has been deprecated. Please user ModelJsonCsvTransformer which is generic for both Csv and Json transformer
-
Constructor Summary
Constructors Constructor Description ModelOutboundCsvTransformer()
Deprecated. -
Method Summary
Modifier and Type Method Description void
transform(CsvRow row, OutboundCsvTransformContext context)
Deprecated.Transforms values within a mutable CsvRow.void
transform(org.json.JSONObject obj, OutboundCsvTransformContext context)
Deprecated.Transform values within a mutable JSONObject, typically after extracting available Model information inJSONService.jsonToModel(JSONObject, Class, String, String, com.onenetwork.platform.common.usercontext.PlatformUserProfile...)
-
Constructor Details
-
ModelOutboundCsvTransformer
public ModelOutboundCsvTransformer()Deprecated.
-
-
Method Details
-
transform
public void transform(CsvRow row, OutboundCsvTransformContext context) throws CsvTransformExceptionDeprecated.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".- 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:
CsvTransformException
- implementers should throw this exception if there is any problem transforming the row
-
transform
public void transform(org.json.JSONObject obj, OutboundCsvTransformContext context) throws JsonTransformExceptionDeprecated.Transform values within a mutable JSONObject, typically after extracting available Model information inJSONService.jsonToModel(JSONObject, Class, String, String, com.onenetwork.platform.common.usercontext.PlatformUserProfile...)
- Parameters:
obj
- JSONObject to be transformedcontext
- provides contextual information around the current transformation- Throws:
JsonTransformException
- implementers should throw this exception if there is any problem transforming the JSONObject
-