com.carrotsearch.ant.tasks.junit4.events.json
Class JsonDescriptionAdapter

java.lang.Object
  extended by com.carrotsearch.ant.tasks.junit4.events.json.JsonDescriptionAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Description>, com.google.gson.JsonSerializer<Description>

public class JsonDescriptionAdapter
extends Object
implements com.google.gson.JsonSerializer<Description>, com.google.gson.JsonDeserializer<Description>

Serialization and deserialization of Description instances.


Constructor Summary
JsonDescriptionAdapter()
           
 
Method Summary
 Description deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
           
 com.google.gson.JsonElement serialize(Description e, Type type, com.google.gson.JsonSerializationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonDescriptionAdapter

public JsonDescriptionAdapter()
Method Detail

serialize

public com.google.gson.JsonElement serialize(Description e,
                                             Type type,
                                             com.google.gson.JsonSerializationContext context)
Specified by:
serialize in interface com.google.gson.JsonSerializer<Description>

deserialize

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


Copyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.