Interface JsonTransformer
- All Superinterfaces:
Transformer
- All Known Subinterfaces:
ModelJsonTransformer
- All Known Implementing Classes:
ModelJsonCsvTransformer
public interface JsonTransformer extends Transformer
Interface to be implemented by clients who wish to transform a JSONObject. Typically used in the context
of converting JSONObject into a Model via
JSONService.jsonToModel(JSONObject, Class, String, String, com.onenetwork.platform.common.usercontext.PlatformUserProfile...)
-
Method Summary
Modifier and Type Method Description void
transform(org.json.JSONObject json, JsonTransformerContext context)
Transforms values within a mutable JSONObject.
-
Method Details
-
transform
void transform(org.json.JSONObject json, JsonTransformerContext context) throws JsonTransformExceptionTransforms values within a mutable JSONObject. Typically used in the context of converting a JSONObject into a Model viaJSONService.jsonToModel(JSONObject, Class, String, String, com.onenetwork.platform.common.usercontext.PlatformUserProfile...)
.- Parameters:
json
- json to be transformedcontext
- provides contextual information around the current transformation- Throws:
implementers
- should throw this exception if there is any problem transforming the rowJsonTransformException
-