Class 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 Detail

      • ThreeDModelParser

        public ThreeDModelParser()
    • Method Detail

      • parseThreeDModel

        public static com.cognite.client.dto.ThreeDModel parseThreeDModel​(String json)
                                                                   throws Exception
        Parses an 3D Models json string to ThreeDModel proto object.
        Parameters:
        json -
        Returns:
        Throws:
        Exception
      • parseThreeDModelToList

        public static List<com.cognite.client.dto.ThreeDModel> parseThreeDModelToList​(String json)
                                                                               throws Exception
        Parses an 3D Models json string to List ThreeDModel proto object.
        Parameters:
        json -
        Returns:
        Throws:
        Exception
      • toRequestInsertItem

        public static Map<String,​Object> toRequestInsertItem​(com.cognite.client.dto.ThreeDModel element)
                                                            throws Exception
        Builds a request insert item object from ThreeDModel. 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​(com.cognite.client.dto.ThreeDModel element)
                                                            throws Exception
        Builds a request update item object from ThreeDModel. 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​(com.cognite.client.dto.ThreeDModel element)
        Builds a request replace item object from ThreeDModel. 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: