org.jclouds.softlayer.config
Class SoftLayerParserModule.VirtualGuestAdapter

java.lang.Object
  extended by org.jclouds.softlayer.config.SoftLayerParserModule.VirtualGuestAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<VirtualGuest>, com.google.gson.JsonSerializer<VirtualGuest>
Enclosing class:
SoftLayerParserModule

@Singleton
public static class SoftLayerParserModule.VirtualGuestAdapter
extends Object
implements com.google.gson.JsonSerializer<VirtualGuest>, com.google.gson.JsonDeserializer<VirtualGuest>


Nested Class Summary
static class SoftLayerParserModule.VirtualGuestAdapter.BillingItem
           
static class SoftLayerParserModule.VirtualGuestAdapter.VirtualGuestInternal
          Internal class that flattens billingItem into billingItemId
 
Constructor Summary
SoftLayerParserModule.VirtualGuestAdapter()
           
 
Method Summary
 VirtualGuest apply(SoftLayerParserModule.VirtualGuestAdapter.VirtualGuestInternal in)
           
 VirtualGuest deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
           
 com.google.gson.JsonElement serialize(VirtualGuest src, Type typeOfSrc, 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

SoftLayerParserModule.VirtualGuestAdapter

public SoftLayerParserModule.VirtualGuestAdapter()
Method Detail

serialize

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

deserialize

public VirtualGuest 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<VirtualGuest>
Throws:
com.google.gson.JsonParseException

apply

public VirtualGuest apply(SoftLayerParserModule.VirtualGuestAdapter.VirtualGuestInternal in)


Copyright © 2009-2011 jclouds. All Rights Reserved.