Class SemanticsTypeAdapter
- java.lang.Object
-
- org.citygml4j.binding.cityjson.geometry.SemanticsTypeAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<SemanticsType>
,com.google.gson.JsonSerializer<SemanticsType>
public class SemanticsTypeAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<SemanticsType>, com.google.gson.JsonDeserializer<SemanticsType>
-
-
Constructor Summary
Constructors Constructor Description SemanticsTypeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SemanticsType
deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonDeserializationContext context)
com.google.gson.JsonElement
serialize(SemanticsType semantics, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(SemanticsType semantics, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<SemanticsType>
-
deserialize
public SemanticsType deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<SemanticsType>
- Throws:
com.google.gson.JsonParseException
-
-