Class MCRCategoryTypeAdapter

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

public class MCRCategoryTypeAdapter extends MCRJSONTypeAdapter<MCRJSONCategory>
  • Constructor Details

    • MCRCategoryTypeAdapter

      public MCRCategoryTypeAdapter()
  • Method Details

    • deserialize

      public MCRJSONCategory 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(MCRJSONCategory category, Type arg1, com.google.gson.JsonSerializationContext contextSerialization)