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