Class ThreeDModelParser
- java.lang.Object
-
- com.cognite.client.servicesV1.parser.ThreeDModelParser
-
public class ThreeDModelParser 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 ThreeDModelParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ThreeDModelparseThreeDModel(String json)Parses an 3D Models json string toThreeDModelproto object.static List<ThreeDModel>parseThreeDModelToList(String json)Parses an 3D Models json string to ListThreeDModelproto object.static Map<String,Object>toRequestInsertItem(ThreeDModel element)Builds a request insert item object fromThreeDModel.static Map<String,Object>toRequestReplaceItem(ThreeDModel element)Builds a request replace item object fromThreeDModel.static Map<String,Object>toRequestUpdateItem(ThreeDModel element)Builds a request update item object fromThreeDModel.
-
-
-
Method Detail
-
parseThreeDModel
public static ThreeDModel parseThreeDModel(String json) throws Exception
Parses an 3D Models json string toThreeDModelproto object.- Parameters:
json-- Returns:
- Throws:
Exception
-
parseThreeDModelToList
public static List<ThreeDModel> parseThreeDModelToList(String json) throws Exception
Parses an 3D Models json string to ListThreeDModelproto object.- Parameters:
json-- Returns:
- Throws:
Exception
-
toRequestInsertItem
public static Map<String,Object> toRequestInsertItem(ThreeDModel element) throws Exception
Builds a request insert item object fromThreeDModel. An insert item object creates a new 3D Models object in the Cognite system.- Parameters:
element-- Returns:
- Throws:
Exception
-
toRequestUpdateItem
public static Map<String,Object> toRequestUpdateItem(ThreeDModel element) throws Exception
Builds a request update item object fromThreeDModel. An update item object updates an existing 3D Models object with new values for all provided fields. Fields that are not in the update object retain their original value.- Parameters:
element-- Returns:
- Throws:
Exception
-
toRequestReplaceItem
public static Map<String,Object> toRequestReplaceItem(ThreeDModel element)
Builds a request replace item object fromThreeDModel. A replace item object replaces an existing 3D Models object with new values for all provided fields. Fields that are not in the update object are set to null.- Parameters:
element-- Returns:
-
-