Package org.mycore.frontend.classeditor
Class MCRLabelSetTypeAdapter
java.lang.Object
org.mycore.common.MCRJSONTypeAdapter<MCRLabelSetWrapper>
org.mycore.frontend.classeditor.MCRLabelSetTypeAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<MCRLabelSetWrapper>
,com.google.gson.JsonSerializer<MCRLabelSetWrapper>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElement
serialize
(MCRLabelSetWrapper labelSetWrapper, Type typeOfSrc, com.google.gson.JsonSerializationContext context) Methods inherited from class org.mycore.common.MCRJSONTypeAdapter
bindTo
-
Constructor Details
-
MCRLabelSetTypeAdapter
public MCRLabelSetTypeAdapter()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(MCRLabelSetWrapper labelSetWrapper, Type typeOfSrc, com.google.gson.JsonSerializationContext context) -
deserialize
public MCRLabelSetWrapper deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Throws:
com.google.gson.JsonParseException
-