List of usage examples for com.google.gson JsonDeserializer interface-usage
From source file com.cloudant.client.internal.util.IndexDeserializer.java
public class IndexDeserializer implements JsonDeserializer<List<Index>> { public List<Index> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { final List<Index> indices = new ArrayList<Index>();
From source file com.cloudant.client.internal.util.SecurityDeserializer.java
public class SecurityDeserializer implements JsonDeserializer<Map<String, EnumSet<Permissions>>> { public Map<String, EnumSet<Permissions>> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { Map<String, EnumSet<Permissions>> perms = new HashMap<String, EnumSet<Permissions>>();
From source file com.cloudant.client.internal.util.ShardDeserializer.java
public class ShardDeserializer implements JsonDeserializer<List<Shard>> { public List<Shard> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { final List<Shard> shards = new ArrayList<Shard>();
From source file com.cloudbase.CBNaturalDeserializer.java
/** * This object is used internally to deserialize a cloudbase.io response. * @author Stefano Buliani * */ public class CBNaturalDeserializer implements JsonDeserializer<Object> {
From source file com.cognifide.aet.job.common.collectors.accessibility.AccessibilityIssueDeserializer.java
public class AccessibilityIssueDeserializer implements JsonDeserializer<AccessibilityIssue> { private static final int MAX_PRE_STRING_LENGTH = 200; private static String NULL_ELEMENT_STRING = "Unable to point to the element associated with this issue.";
From source file com.cognifide.aet.job.common.comparators.w3chtml5.parser.W3cHtml5IssueDeserializer.java
public class W3cHtml5IssueDeserializer implements JsonDeserializer<W3cHtml5Issue> { private static final String TYPE = "type"; private static final String SUBTYPE = "subType"; private static final String MESSAGE = "message"; private static final String EXTRACT = "extract";
From source file com.cognifide.aet.proxy.DateDeserializer.java
/** * Created by michal.slusarczyk on 2015-02-27. */ public class DateDeserializer implements JsonDeserializer<Date> { @Override
From source file com.cognifide.aet.vs.metadata.TimestampSerializer.java
class TimestampSerializer implements JsonSerializer<Suite.Timestamp>, JsonDeserializer<Suite.Timestamp> { @Override public JsonElement serialize(Suite.Timestamp src, Type typeOfSrc, JsonSerializationContext context) { return src == null ? null : new JsonPrimitive(src.get()); }
From source file com.contentful.java.cda.ResourceTypeAdapter.java
/** * Custom type adapter for de-serializing resources. */ class ResourceTypeAdapter implements JsonDeserializer<CDAResource> { private final SpaceWrapper spaceWrapper; private final Map<String, Class<?>> customTypesMap;
From source file com.continuuity.loom.codec.json.AbstractCodec.java
/** * Utility methods for serializing and deserializing objects to/from json. * * @param <T> Type of object to serialize and deserialize. */ public abstract class AbstractCodec<T> implements JsonSerializer<T>, JsonDeserializer<T> {