Class _ArrayListAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<ArrayList>
-
- org.ehrbase.ehr.encode.wrappers.json.writer.translator_db2raw._ArrayListAdapter
-
- All Implemented Interfaces:
I_DvTypeAdapter
public class _ArrayListAdapter extends com.google.gson.TypeAdapter<ArrayList> implements I_DvTypeAdapter
GSON adapter for ArrayList
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ehrbase.ehr.encode.wrappers.json.I_DvTypeAdapter
I_DvTypeAdapter.AdapterType
-
-
Field Summary
Fields Modifier and Type Field Description protected I_DvTypeAdapter.AdapterTypeadapterTypeprotected StringarchetypeNodeIdprotected Stringkey-
Fields inherited from interface org.ehrbase.ehr.encode.wrappers.json.I_DvTypeAdapter
ARCHETYPE_NODE_ID, AT_CLASS, AT_TYPE, ELEMENT, EVENTS, ITEMS, matchNodePredicate, NAME, TAG_CLASS_RAW_JSON, VALUE
-
-
Constructor Summary
Constructors Constructor Description _ArrayListAdapter()_ArrayListAdapter(String archetypeNodeId)_ArrayListAdapter(String archetypeNodeId, String key)_ArrayListAdapter(I_DvTypeAdapter.AdapterType adapterType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayListread(com.google.gson.stream.JsonReader arg0)voidwrite(com.google.gson.stream.JsonWriter writer, ArrayList arrayList)
-
-
-
Field Detail
-
adapterType
protected I_DvTypeAdapter.AdapterType adapterType
-
archetypeNodeId
protected String archetypeNodeId
-
key
protected String key
-
-
Constructor Detail
-
_ArrayListAdapter
public _ArrayListAdapter(I_DvTypeAdapter.AdapterType adapterType)
-
_ArrayListAdapter
public _ArrayListAdapter(String archetypeNodeId)
-
_ArrayListAdapter
public _ArrayListAdapter()
-
-
Method Detail
-
read
public ArrayList read(com.google.gson.stream.JsonReader arg0) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<ArrayList>- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter writer, ArrayList arrayList) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<ArrayList>- Throws:
IOException
-
-