T - the type of the schema produced by the converter.public abstract class HapiCompositeConverter<T> extends HapiConverter<T>
| Modifier and Type | Class and Description |
|---|---|
protected class |
HapiCompositeConverter.CompositeFieldSetter |
HapiConverter.HapiFieldSetter, HapiConverter.HapiObjectConverter, HapiConverter.MultiValueConverter| Modifier and Type | Field and Description |
|---|---|
protected T |
structType |
| Modifier | Constructor and Description |
|---|---|
protected |
HapiCompositeConverter(String elementType,
List<StructureField<HapiConverter<T>>> children,
T structType,
FhirConversionSupport fhirSupport,
String extensionUrl) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
createComposite(Object[] children) |
String |
extensionUrl()
The extension URL if the field is an extension, null otherwise.
|
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.
|
String |
getElementType()
The FHIR type of the element to be converted, or null
if there is no FHIR type, such as within a FHIR backbone element.
|
protected abstract boolean |
isMultiValued(T schemaType) |
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.
|
protected final T structType
protected HapiCompositeConverter(String elementType, List<StructureField<HapiConverter<T>>> children, T structType, FhirConversionSupport fhirSupport, String extensionUrl)
protected abstract boolean isMultiValued(T schemaType)
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>public String extensionUrl()
HapiConverterextensionUrl in class HapiConverter<T>public String getElementType()
HapiConvertergetElementType in class HapiConverter<T>Copyright © 2020. All rights reserved.