Class TransformationParser
- java.lang.Object
-
- com.cognite.client.servicesV1.parser.TransformationParser
-
public class TransformationParser extends Object
This class contains a set of methods to help parsing file objects between Cognite api representations (json and proto) and typed objects.
-
-
Constructor Summary
Constructors Constructor Description TransformationParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransformationparseTransformations(String json)static List<Transformation>parseTransformationsToList(String json)static Map<String,Object>toRequestInsertItem(Transformation element)Builds a request insert item object fromTransformation.static Map<String,Object>toRequestReplaceItem(Transformation element)static Map<String,Object>toRequestUpdateItem(Transformation element)
-
-
-
Method Detail
-
toRequestInsertItem
public static Map<String,Object> toRequestInsertItem(Transformation element) throws Exception
Builds a request insert item object fromTransformation. An insert item object creates a new Transformation object in the Cognite system.- Parameters:
element-- Returns:
- Throws:
Exception
-
toRequestUpdateItem
public static Map<String,Object> toRequestUpdateItem(Transformation element) throws Exception
- Throws:
Exception
-
toRequestReplaceItem
public static Map<String,Object> toRequestReplaceItem(Transformation element)
-
parseTransformations
public static Transformation parseTransformations(String json) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
parseTransformationsToList
public static List<Transformation> parseTransformationsToList(String json) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-