Package org.mycore.mets.model.converter
Class MCRAltoLinkTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<MCRMetsAltoLink>
org.mycore.mets.model.converter.MCRAltoLinkTypeAdapter
This is a helper class to help GSON to convert simple model to JSON.
- Author:
- Sebastian Hofmann(mcrshofm)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Created by sebastian on 25.11.15. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(com.google.gson.stream.JsonReader jsonReader) void
write
(com.google.gson.stream.JsonWriter jsonWriter, MCRMetsAltoLink altoLink) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
MCRAltoLinkTypeAdapter
public MCRAltoLinkTypeAdapter()
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, MCRMetsAltoLink altoLink) throws IOException - Specified by:
write
in classcom.google.gson.TypeAdapter<MCRMetsAltoLink>
- Throws:
IOException
-
read
- Specified by:
read
in classcom.google.gson.TypeAdapter<MCRMetsAltoLink>
- Throws:
IOException
-