Class MCRPropertiesToJSONTransformer.BundleMapSerializer

java.lang.Object
org.mycore.restapi.v1.utils.MCRPropertiesToJSONTransformer.BundleMapSerializer
All Implemented Interfaces:
com.google.gson.JsonSerializer<Map<String,String>>
Enclosing class:
MCRPropertiesToJSONTransformer

public static class MCRPropertiesToJSONTransformer.BundleMapSerializer extends Object implements com.google.gson.JsonSerializer<Map<String,String>>
  • Constructor Details

    • BundleMapSerializer

      public BundleMapSerializer()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(Map<String,String> bundleMap, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Map<String,String>>
    • createFromBundleKey

      public static com.google.gson.JsonObject createFromBundleKey(com.google.gson.JsonObject resultJson, String key, String value) throws IOException
      Throws:
      IOException