T - the type of the schema produced by the converter.public abstract class HapiContainedConverter<T> extends HapiConverter<T>
HapiCompositeConverter in that a Contained converter must translate between a static
Resource Container and FHIR's Any-typed container list of FHIR resources.| Modifier and Type | Class and Description |
|---|---|
protected class |
HapiContainedConverter.ContainerEntry
Represents the association of a contained element to its type.
|
HapiConverter.HapiFieldSetter, HapiConverter.HapiObjectConverter, HapiConverter.MultiValueConverter| Modifier | Constructor and Description |
|---|---|
protected |
HapiContainedConverter(Map<String,StructureField<HapiConverter<T>>> contained,
T structType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
createContained(Object[] contained)
Constructs a statically typed Resource Container populated with all contained entries.
|
Object |
fromHapi(Object input)
Converts a HAPI object or list of objects to the equivalent
in the alternative data model.
|
protected abstract List<HapiContainedConverter.ContainerEntry> |
getContained(Object container)
Retrieves the contained elements from their container, associated with their type.
|
T |
getDataType()
Returns the schema of the converted item.
|
HapiConverter.HapiFieldSetter |
toHapiConverter(ca.uhn.fhir.context.BaseRuntimeElementDefinition... elementDefinitions)
Returns a field setter to be used when converting an object of an
alternative model to HAPI.
|
extensionUrl, getElementTypeprotected HapiContainedConverter(Map<String,StructureField<HapiConverter<T>>> contained, T structType)
protected abstract List<HapiContainedConverter.ContainerEntry> getContained(Object container)
container - the Resource ContainerList of HapiContainedConverter.ContainerEntry.protected abstract Object createContained(Object[] contained)
contained - the entries to be contained.public Object fromHapi(Object input)
HapiConverterfromHapi in class HapiConverter<T>input - a HAPI object.public HapiConverter.HapiFieldSetter toHapiConverter(ca.uhn.fhir.context.BaseRuntimeElementDefinition... elementDefinitions)
HapiConvertertoHapiConverter in class HapiConverter<T>elementDefinitions - the set of element definitions that the element can be.public T getDataType()
HapiConvertergetDataType in class HapiConverter<T>Copyright © 2020. All rights reserved.