public abstract class HapiChoiceConverter<T> extends HapiConverter<T>
HapiConverter.HapiFieldSetter, HapiConverter.HapiObjectConverter, HapiConverter.MultiValueConverter| Modifier | Constructor and Description |
|---|---|
protected |
HapiChoiceConverter(Map<String,HapiConverter<T>> choiceTypes,
T structType,
FhirConversionSupport fhirSupport) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
createComposite(Object[] children) |
Object |
fromHapi(Object input)
Converts a HAPI object or list of objects to the equivalent
in the alternative data model.
|
protected abstract Object |
getChild(Object composite,
int index) |
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 HapiChoiceConverter(Map<String,HapiConverter<T>> choiceTypes, T structType, FhirConversionSupport fhirSupport)
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.