Package org.hl7.fhir.r4.utils
Class NPMPackageGenerator
- java.lang.Object
-
- org.hl7.fhir.r4.utils.NPMPackageGenerator
-
public class NPMPackageGenerator extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNPMPackageGenerator.Category
-
Constructor Summary
Constructors Constructor Description NPMPackageGenerator(String destFile, com.google.gson.JsonObject npm)NPMPackageGenerator(String destFile, String canonical, String url, org.hl7.fhir.utilities.cache.PackageGenerator.PackageType kind, ImplementationGuide ig, String genDate)NPMPackageGenerator(String destFile, String canonical, String url, org.hl7.fhir.utilities.cache.PackageGenerator.PackageType kind, ImplementationGuide ig, String genDate, List<String> fhirVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFile(NPMPackageGenerator.Category cat, String name, byte[] content)Stringfilename()voidfinish()voidloadDir(String rootDir, String name)voidloadFiles(String root, File dir, String... noload)static NPMPackageGeneratorsubset(NPMPackageGenerator master, String destFile, String id, String name)
-
-
-
Constructor Detail
-
NPMPackageGenerator
public NPMPackageGenerator(String destFile, String canonical, String url, org.hl7.fhir.utilities.cache.PackageGenerator.PackageType kind, ImplementationGuide ig, String genDate) throws org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRExceptionIOException
-
NPMPackageGenerator
public NPMPackageGenerator(String destFile, String canonical, String url, org.hl7.fhir.utilities.cache.PackageGenerator.PackageType kind, ImplementationGuide ig, String genDate, List<String> fhirVersion) throws org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRExceptionIOException
-
NPMPackageGenerator
public NPMPackageGenerator(String destFile, com.google.gson.JsonObject npm) throws org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRExceptionIOException
-
-
Method Detail
-
subset
public static NPMPackageGenerator subset(NPMPackageGenerator master, String destFile, String id, String name) throws org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRExceptionIOException
-
addFile
public void addFile(NPMPackageGenerator.Category cat, String name, byte[] content) throws IOException
- Throws:
IOException
-
finish
public void finish() throws IOException
- Throws:
IOException
-
loadDir
public void loadDir(String rootDir, String name) throws IOException
- Throws:
IOException
-
loadFiles
public void loadFiles(String root, File dir, String... noload) throws IOException
- Throws:
IOException
-
-