Package com.suse.salt.netapi.parser
Class ArgumentsAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Arguments>
-
- com.suse.salt.netapi.parser.ArgumentsAdapter
-
public class ArgumentsAdapter extends com.google.gson.TypeAdapter<Arguments>
Json TypeAdapter for Arguments class. Breaks the incoming arguments into args and kwargs parts and fills a new Arguments instance.
-
-
Constructor Summary
Constructors Constructor Description ArgumentsAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Arguments
read(com.google.gson.stream.JsonReader jsonReader)
void
write(com.google.gson.stream.JsonWriter jsonWriter, Arguments args)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, Arguments args) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<Arguments>
- Throws:
IOException
-
read
public Arguments read(com.google.gson.stream.JsonReader jsonReader) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<Arguments>
- Throws:
IOException
-
-