Class DvTypeAdapter<T>
- java.lang.Object
-
- com.google.gson.TypeAdapter<T>
-
- org.ehrbase.ehr.encode.wrappers.json.writer.DvTypeAdapter<T>
-
- All Implemented Interfaces:
I_DvTypeAdapter
- Direct Known Subclasses:
CodePhraseAdapter,DvCodedTextAdapter,DvDateAdapter,DvDateTimeAdapter,DvDurationAdapter,DvTextAdapter,DvTimeAdapter,ParticipationAdapter,PartyIdentifiedAdapter,TerminologyIDAdapter,TermMappingAdapter
public abstract class DvTypeAdapter<T> extends com.google.gson.TypeAdapter<T> implements I_DvTypeAdapter
GSON adapter for DvDateTime Required since JSON does not support natively a DateTime data type
-
-
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.AdapterTypeadapterType-
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 DvTypeAdapter()DvTypeAdapter(I_DvTypeAdapter.AdapterType adapterType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tread(com.google.gson.stream.JsonReader arg0)voidwrite(com.google.gson.stream.JsonWriter writer, T dvalue)
-
-
-
Field Detail
-
adapterType
protected I_DvTypeAdapter.AdapterType adapterType
-
-
Constructor Detail
-
DvTypeAdapter
public DvTypeAdapter(I_DvTypeAdapter.AdapterType adapterType)
-
DvTypeAdapter
public DvTypeAdapter()
-
-
Method Detail
-
read
public T read(com.google.gson.stream.JsonReader arg0) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<T>- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter writer, T dvalue) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<T>- Throws:
IOException
-
-