Search in sources :

Example 1 with StdConfig

use of org.ehrbase.serialisation.flatencoding.std.marshal.config.StdConfig in project openEHR_SDK by ehrbase.

the class StdFromCompositionWalker method preHandle.

@Override
protected void preHandle(Context<Map<String, Object>> context) {
    // Handle if at a End-Node
    if (!visitChildren(context.getNodeDeque().peek()) && !context.getFlatHelper().skip(context)) {
        RMObject currentObject = context.getRmObjectDeque().peek();
        StdConfig stdConfig = findStdConfig(currentObject.getClass());
        context.getObjectDeque().peek().putAll(stdConfig.buildChildValues(context.getFlatHelper().buildNamePath(context, true), currentObject, context));
    }
}
Also used : DefaultStdConfig(org.ehrbase.serialisation.flatencoding.std.marshal.config.DefaultStdConfig) StdConfig(org.ehrbase.serialisation.flatencoding.std.marshal.config.StdConfig) RMObject(com.nedap.archie.rm.RMObject)

Aggregations

RMObject (com.nedap.archie.rm.RMObject)1 DefaultStdConfig (org.ehrbase.serialisation.flatencoding.std.marshal.config.DefaultStdConfig)1 StdConfig (org.ehrbase.serialisation.flatencoding.std.marshal.config.StdConfig)1