Class AbstractRMUnmarshaller<T extends com.nedap.archie.rm.RMObject>
java.lang.Object
org.ehrbase.openehr.sdk.serialisation.flatencoding.std.umarshal.rmunmarshaller.AbstractRMUnmarshaller<T>
- All Implemented Interfaces:
RMUnmarshaller<T>,ClassDependent<T>
- Direct Known Subclasses:
CodePhraseRMUnmarshaller,DefaultRMUnmarshaller,DvCodedTextRMUnmarshaller,DvCountRMUnmarshaller,DvDateRMUnmarshaller,DvDateTimeRMUnmarshaller,DvDurationRMUnmarshaller,DvEHRUriDRMUnmarshaller,DvIdentifierRMUnmarshaller,DvMultimediaRMUnmarshaller,DvOrdinalRMUnmarshaller,DvParsableRMUnmarshaller,DvProportionRMUnmarshaller,DvQuantityRMUnmarshaller,DvTextRMUnmarshaller,DvTimeRMUnmarshaller,DvUriRMUnmarshaller,FeederAuditDetailsRMUnmarshaller,FeederAuditRMUnmarshaller,InstructionDetailsRMUnmarshaller,IsmTransitionRMUnmarshaller,PartyIdentifiedRMUnmarshaller,PartyRelatedRMUnmarshaller,PartySelfRMUnmarshaller,TermMappingRMUnmarshaller
public abstract class AbstractRMUnmarshaller<T extends com.nedap.archie.rm.RMObject>
extends Object
implements RMUnmarshaller<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(String currentTerm, T rmObject, Map<FlatPathDto, String> currentValues, Context<Map<FlatPathDto, String>> context, Set<String> consumedPaths) Puts thecurrentValuesinto thermObjectprotected <S> voidsetValue(String term, String propertyName, Map<FlatPathDto, String> values, Consumer<S> consumer, Class<S> clazz, Set<String> consumedPaths) Sets theconsumerto the value invaluescorresponding totermandpropertyNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ehrbase.openehr.sdk.util.reflection.ClassDependent
getAssociatedClass
-
Constructor Details
-
AbstractRMUnmarshaller
public AbstractRMUnmarshaller()
-
-
Method Details
-
handle
public void handle(String currentTerm, T rmObject, Map<FlatPathDto, String> currentValues, Context<Map<FlatPathDto, String>> context, Set<String> consumedPaths) Puts thecurrentValuesinto thermObjectUseRmIntrospectConfigto find die properties which needs to be set- Specified by:
handlein interfaceRMUnmarshaller<T extends com.nedap.archie.rm.RMObject>
-
setValue
protected <S> void setValue(String term, String propertyName, Map<FlatPathDto, String> values, Consumer<S> consumer, Class<S> clazz, Set<String> consumedPaths) Sets theconsumerto the value invaluescorresponding totermandpropertyName- Type Parameters:
S-- Parameters:
term-propertyName-values-consumer-clazz-consumedPaths-
-