Package org.hl7.fhir.convertors.context
Class VersionConvertorContext<T>
- java.lang.Object
-
- org.hl7.fhir.convertors.context.VersionConvertorContext<T>
-
- Type Parameters:
T-
public class VersionConvertorContext<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description VersionConvertorContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(String path)Closes the current path.StringgetPath()Will return theStringcorresponding to the current conversion "path".TgetVersionConvertor()Returns the current instance of the version convertor.voidinit(T versionConvertor, String path)Initializes the conversion context.
-
-
-
Constructor Detail
-
VersionConvertorContext
public VersionConvertorContext()
-
-
Method Detail
-
init
public void init(T versionConvertor, String path)
Initializes the conversion context. If a context already exists, this will just add the path to the current tracked path for the conversion context.- Parameters:
versionConvertor- Instance of the version convertor context to use.path- Current path (i.e. String label) for the given conversion.
-
close
public void close(String path)
Closes the current path. This removes the label from the current stored path. If there is no remaining path set after this path is removed, the context convertor and path are cleared from memory.- Parameters:
path-Stringlabel path to add.
-
getPath
public String getPath() throws org.hl7.fhir.exceptions.FHIRException
Will return theStringcorresponding to the current conversion "path". ex: "Bundle.Appointment"- Returns:
ArrayList- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getVersionConvertor
public T getVersionConvertor()
Returns the current instance of the version convertor.
-
-