Class VersionConvertorContext<T>

java.lang.Object
org.hl7.fhir.convertors.context.VersionConvertorContext<T>
Type Parameters:
T -

public class VersionConvertorContext<T> extends Object
  • Constructor Details

  • Method Details

    • 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 - String label path to add.
    • getPath

      public String getPath() throws org.hl7.fhir.exceptions.FHIRException
      Will return the String corresponding to the current conversion "path". ex: "Bundle.Appointment"
      Returns:
      ArrayList<String>
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getVersionConvertor

      Returns the current instance of the version convertor.