Package org.hl7.fhir.validation
Class Scanner
- java.lang.Object
-
- org.hl7.fhir.validation.Scanner
-
-
Constructor Summary
Constructors Constructor Description Scanner(org.hl7.fhir.r5.context.SimpleWorkerContext context, InstanceValidator validator, IgLoader igLoader, org.hl7.fhir.r5.utils.FHIRPathEngine fhirPathEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddownload(String address, String filename)protected org.hl7.fhir.r5.model.OperationOutcomeexceptionToOutcome(Exception ex)protected voidextractFile(ZipInputStream zipIn, String filePath)protected StringgenOutcome(List<ScanOutputItem> items, String src, String ig, String profile)protected voidgenScanOutput(String folder, List<ScanOutputItem> items)protected voidgenScanOutputItem(ScanOutputItem item, String filename)protected StringgetGlobal(org.hl7.fhir.r5.model.ImplementationGuide ig, String rt)protected List<String>sort(Set<String> keys)protected voidtransfer(InputStream in, OutputStream out, int buffer)protected voidunzip(String zipFilePath, String destDirectory)voidvalidateScan(String output, List<String> sources)protected List<ScanOutputItem>validateScan(List<String> sources, Set<String> guides)
-
-
-
Constructor Detail
-
Scanner
public Scanner(org.hl7.fhir.r5.context.SimpleWorkerContext context, InstanceValidator validator, IgLoader igLoader, org.hl7.fhir.r5.utils.FHIRPathEngine fhirPathEngine)
-
-
Method Detail
-
validateScan
public void validateScan(String output, List<String> sources) throws Exception
- Throws:
Exception
-
validateScan
protected List<ScanOutputItem> validateScan(List<String> sources, Set<String> guides) throws org.hl7.fhir.exceptions.FHIRException, IOException, org.hl7.fhir.r5.utils.EOperationOutcome
- Throws:
org.hl7.fhir.exceptions.FHIRExceptionIOExceptionorg.hl7.fhir.r5.utils.EOperationOutcome
-
genScanOutput
protected void genScanOutput(String folder, List<ScanOutputItem> items) throws IOException, org.hl7.fhir.exceptions.FHIRException, org.hl7.fhir.r5.utils.EOperationOutcome
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionorg.hl7.fhir.r5.utils.EOperationOutcome
-
genScanOutputItem
protected void genScanOutputItem(ScanOutputItem item, String filename) throws IOException, org.hl7.fhir.exceptions.FHIRException, org.hl7.fhir.r5.utils.EOperationOutcome
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionorg.hl7.fhir.r5.utils.EOperationOutcome
-
genOutcome
protected String genOutcome(List<ScanOutputItem> items, String src, String ig, String profile)
-
exceptionToOutcome
protected org.hl7.fhir.r5.model.OperationOutcome exceptionToOutcome(Exception ex) throws IOException, org.hl7.fhir.exceptions.FHIRException, org.hl7.fhir.r5.utils.EOperationOutcome
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionorg.hl7.fhir.r5.utils.EOperationOutcome
-
download
protected void download(String address, String filename) throws IOException
- Throws:
IOException
-
transfer
protected void transfer(InputStream in, OutputStream out, int buffer) throws IOException
- Throws:
IOException
-
unzip
protected void unzip(String zipFilePath, String destDirectory) throws IOException
- Throws:
IOException
-
extractFile
protected void extractFile(ZipInputStream zipIn, String filePath) throws IOException
- Throws:
IOException
-
-