Class VersionConvertorContext<T>

    • 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 - 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
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getVersionConvertor

        public T getVersionConvertor()
        Returns the current instance of the version convertor.