Class SerializationUtils


  • public class SerializationUtils
    extends Object
    • Constructor Detail

      • SerializationUtils

        public SerializationUtils()
    • Method Detail

      • getOrCreateObjectMetadata

        public static <T> ConnectMetadata<T> getOrCreateObjectMetadata​(Class<T> clazz)
        Helper method for obtaining the ConnectMetadata for the specified class.
        Parameters:
        clazz - the class to inspect
        Returns:
        connect metadata for the specified class
      • serializeToString

        public static String serializeToString​(javax.json.JsonObject jsonObject)
      • writeProperty

        public static void writeProperty​(javax.json.JsonObjectBuilder jsonObjectBuilder,
                                         String key,
                                         Object value)
      • readObject

        public static Object readObject​(javax.json.JsonObject json,
                                        Field field)
      • readMapObject

        public static Object readMapObject​(javax.json.JsonObject json,
                                           String fieldName,
                                           Class<?> fieldType)
      • serializeJsonObjectToMap

        public static void serializeJsonObjectToMap​(javax.json.JsonObject json,
                                                    Map<String,​Object> target)
      • deserializeMapInfo

        public static Object deserializeMapInfo​(javax.json.JsonObject info)