Package org.hl7.fhir.r4b.utils
Class NPMPackageGenerator
- java.lang.Object
-
- org.hl7.fhir.r4b.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, Date date, boolean notForPublication)NPMPackageGenerator(String destFile, String canonical, String url, org.hl7.fhir.utilities.npm.PackageGenerator.PackageType kind, ImplementationGuide ig, Date date, boolean notForPublication)NPMPackageGenerator(String destFile, String canonical, String url, org.hl7.fhir.utilities.npm.PackageGenerator.PackageType kind, ImplementationGuide ig, Date date, List<String> fhirVersion, boolean notForPublication)
-
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, Date date, boolean notForPublication)Stringversion()
-
-
-
Constructor Detail
-
NPMPackageGenerator
public NPMPackageGenerator(String destFile, String canonical, String url, org.hl7.fhir.utilities.npm.PackageGenerator.PackageType kind, ImplementationGuide ig, Date date, boolean notForPublication) 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.npm.PackageGenerator.PackageType kind, ImplementationGuide ig, Date date, List<String> fhirVersion, boolean notForPublication) throws org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRExceptionIOException
-
NPMPackageGenerator
public NPMPackageGenerator(String destFile, com.google.gson.JsonObject npm, Date date, boolean notForPublication) 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, Date date, boolean notForPublication) 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
-
-