Search in sources :

Example 1 with VinesTransformer

use of com.ibm.streamsx.health.vines.model.VinesTransformer in project streamsx.health by IBMStreams.

the class VinesMessageParser method createGson.

private static Gson createGson() {
    GsonBuilder builder = new GsonBuilder();
    builder.registerTypeAdapter(ITerm.class, new TermTransformer());
    builder.registerTypeAdapter(ITermValue.class, new TermValueTransformer());
    builder.registerTypeAdapter(Vines.class, new VinesTransformer());
    return builder.create();
}
Also used : TermValueTransformer(com.ibm.streamsx.health.vines.model.TermValueTransformer) GsonBuilder(com.google.gson.GsonBuilder) VinesTransformer(com.ibm.streamsx.health.vines.model.VinesTransformer) TermTransformer(com.ibm.streamsx.health.vines.model.TermTransformer)

Aggregations

GsonBuilder (com.google.gson.GsonBuilder)1 TermTransformer (com.ibm.streamsx.health.vines.model.TermTransformer)1 TermValueTransformer (com.ibm.streamsx.health.vines.model.TermValueTransformer)1 VinesTransformer (com.ibm.streamsx.health.vines.model.VinesTransformer)1