Class IgLoader

    • Constructor Detail

      • IgLoader

        public IgLoader​(org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager packageCacheManager,
                        org.hl7.fhir.r5.context.SimpleWorkerContext context,
                        String theVersion)
      • IgLoader

        public IgLoader​(org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager packageCacheManager,
                        org.hl7.fhir.r5.context.SimpleWorkerContext context,
                        String theVersion,
                        boolean isDebug)
    • Method Detail

      • loadContent

        public org.hl7.fhir.validation.Content loadContent​(String source,
                                                           String opName,
                                                           boolean asIg)
                                                    throws org.hl7.fhir.exceptions.FHIRException,
                                                           IOException
        Parameters:
        source -
        opName -
        asIg -
        Returns:
        Throws:
        org.hl7.fhir.exceptions.FHIRException
        IOException - * @see IgLoader#loadIgSource(String, boolean, boolean) loadIgSource for detailed description of the src parameter
      • loadIgSource

        public Map<String,​byte[]> loadIgSource​(String src,
                                                     boolean recursive,
                                                     boolean explore)
                                              throws org.hl7.fhir.exceptions.FHIRException,
                                                     IOException
        Parameters:
        src - can be one of the following:
        - a canonical url for an ig - this will be converted to a package id and loaded into the cache
        - a package id for an ig - this will be loaded into the cache
        - a direct reference to a package ("package.tgz") - this will be extracted by the cache manager, but not put in the cache
        - a folder containing resources - these will be loaded directly
        recursive - if true and src resolves to a folder, recursively find and load IgSources from that directory
        explore - should be true if we're trying to load an -ig parameter, and false if we're loading source
        Returns:
        Throws:
        org.hl7.fhir.exceptions.FHIRException
        IOException
      • loadPackage

        public Map<String,​byte[]> loadPackage​(org.hl7.fhir.utilities.npm.NpmPackage pi,
                                                    boolean loadInContext)
                                             throws org.hl7.fhir.exceptions.FHIRException,
                                                    IOException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
        IOException