Package org.mycore.frontend.classeditor
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>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElement
serialize
(MCRJSONCategory category, Type arg1, com.google.gson.JsonSerializationContext contextSerialization) Methods inherited from class org.mycore.common.MCRJSONTypeAdapter
bindTo
-
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)
-