T - the type of the schema produced by the converter.public class LeafExtensionConverter<T> extends HapiConverter<T>
HapiConverter.HapiFieldSetter, HapiConverter.HapiObjectConverter, HapiConverter.MultiValueConverter| Constructor and Description |
|---|
LeafExtensionConverter(String extensionUrl,
HapiConverter valueConverter)
Constructs a converter for the leaf extension.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
getElementTypepublic LeafExtensionConverter(String extensionUrl, HapiConverter valueConverter)
extensionUrl - the URL of the extensionvalueConverter - the converter for the extension's value.public Object fromHapi(Object input)
HapiConverterfromHapi in class HapiConverter<T>input - a HAPI object.public T getDataType()
HapiConvertergetDataType in class HapiConverter<T>public String extensionUrl()
HapiConverterextensionUrl in class HapiConverter<T>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.Copyright © 2020. All rights reserved.