Package org.hl7.fhir.r5.context
Class SimpleWorkerContext.SimpleWorkerContextBuilder
- java.lang.Object
-
- org.hl7.fhir.r5.context.SimpleWorkerContext.SimpleWorkerContextBuilder
-
- Enclosing class:
- SimpleWorkerContext
public static class SimpleWorkerContext.SimpleWorkerContextBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description SimpleWorkerContextBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleWorkerContextbuild()SimpleWorkerContextfromClassPath()SimpleWorkerContextfromClassPath(String name)SimpleWorkerContextfromDefinitions(Map<String,byte[]> source, IWorkerContext.IContextResourceLoader loader, IWorkerContext.PackageVersion pi)SimpleWorkerContextfromNothing()SimpleWorkerContextfromPack(String path)Load the working context from the validation packSimpleWorkerContextfromPack(String path, IWorkerContext.IContextResourceLoader loader)SimpleWorkerContextfromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi)SimpleWorkerContextfromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi, IWorkerContext.IContextResourceLoader loader)
-
-
-
Constructor Detail
-
SimpleWorkerContextBuilder
public SimpleWorkerContextBuilder()
-
-
Method Detail
-
build
public SimpleWorkerContext build() throws IOException
- Throws:
IOException
-
fromPackage
public SimpleWorkerContext fromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
fromPackage
public SimpleWorkerContext fromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi, IWorkerContext.IContextResourceLoader loader) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
fromPack
public SimpleWorkerContext fromPack(String path) throws IOException, org.hl7.fhir.exceptions.FHIRException
Load the working context from the validation pack- Parameters:
path- filename of the validation pack- Returns:
- Throws:
IOExceptionFileNotFoundExceptionorg.hl7.fhir.exceptions.FHIRExceptionException
-
fromPack
public SimpleWorkerContext fromPack(String path, IWorkerContext.IContextResourceLoader loader) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
fromClassPath
public SimpleWorkerContext fromClassPath() throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
fromClassPath
public SimpleWorkerContext fromClassPath(String name) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
fromDefinitions
public SimpleWorkerContext fromDefinitions(Map<String,byte[]> source, IWorkerContext.IContextResourceLoader loader, IWorkerContext.PackageVersion pi) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
fromNothing
public SimpleWorkerContext fromNothing() throws org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRExceptionIOException
-
-