public abstract class PrimitiveConverter<T> extends HapiConverter<T>
HapiConverter.HapiFieldSetter, HapiConverter.HapiObjectConverter, HapiConverter.MultiValueConverter| Constructor and Description |
|---|
PrimitiveConverter(String elementType) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
fromHapi(org.hl7.fhir.instance.model.api.IPrimitiveType primitive) |
Object |
fromHapi(Object input)
Converts a HAPI object or list of objects to the equivalent
in the alternative data model.
|
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.
|
void |
toHapi(Object input,
org.hl7.fhir.instance.model.api.IPrimitiveType primitive)
Helper method that will set the HAPI value.
|
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, getDataTypepublic PrimitiveConverter(String elementType)
public void toHapi(Object input, org.hl7.fhir.instance.model.api.IPrimitiveType primitive)
input - the input objectprimitive - the FHIR primitive to setprotected Object fromHapi(org.hl7.fhir.instance.model.api.IPrimitiveType primitive)
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 String getElementType()
HapiConvertergetElementType in class HapiConverter<T>Copyright © 2020. All rights reserved.