Class DimensionAdapter

java.lang.Object
com.kheops.jmap.metadata.mapcontext.DimensionAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Dimension>, com.google.gson.JsonSerializer<Dimension>

public class DimensionAdapter extends Object implements com.google.gson.JsonSerializer<Dimension>, com.google.gson.JsonDeserializer<Dimension>
  • Constructor Details

    • DimensionAdapter

      public DimensionAdapter()
  • Method Details

    • deserialize

      public Dimension deserialize(com.google.gson.JsonElement jsonElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<Dimension>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(Dimension src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Dimension>