Class MCRCategoryIDTypeAdapter

java.lang.Object
org.mycore.common.MCRJSONTypeAdapter<MCRCategoryID>
org.mycore.frontend.classeditor.MCRCategoryIDTypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<MCRCategoryID>, com.google.gson.JsonSerializer<MCRCategoryID>

public class MCRCategoryIDTypeAdapter extends MCRJSONTypeAdapter<MCRCategoryID>
  • Constructor Details

    • MCRCategoryIDTypeAdapter

      public MCRCategoryIDTypeAdapter()
  • Method Details

    • deserialize

      public MCRCategoryID deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(MCRCategoryID id, Type typeOfSrc, com.google.gson.JsonSerializationContext context)