Package org.hl7.fhir.validation
Class ValidatorUtils
- java.lang.Object
-
- org.hl7.fhir.validation.ValidatorUtils
-
public class ValidatorUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ValidatorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static List<org.hl7.fhir.utilities.validation.ValidationMessage>filterMessages(List<org.hl7.fhir.utilities.validation.ValidationMessage> messages)protected static voidgrabNatives(Map<String,byte[]> source, Map<String,byte[]> binaries, String prefix)protected static org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoaderloaderForVersion(String version)protected static org.hl7.fhir.r5.model.OperationOutcomemessagesToOutcome(List<org.hl7.fhir.utilities.validation.ValidationMessage> messages, org.hl7.fhir.r5.context.SimpleWorkerContext context, org.hl7.fhir.r5.utils.FHIRPathEngine fpe)static booleanparseSources(List<String> sources, List<String> refs, org.hl7.fhir.r5.context.SimpleWorkerContext context)Iterates through the list of passed in sources, extracting all references and populated them in the passed in list.protected static DocumentparseXml(byte[] cnt)
-
-
-
Constructor Detail
-
ValidatorUtils
public ValidatorUtils()
-
-
Method Detail
-
grabNatives
protected static void grabNatives(Map<String,byte[]> source, Map<String,byte[]> binaries, String prefix)
-
loaderForVersion
protected static org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader loaderForVersion(String version)
-
parseXml
protected static Document parseXml(byte[] cnt) throws ParserConfigurationException, SAXException, IOException
-
filterMessages
protected static List<org.hl7.fhir.utilities.validation.ValidationMessage> filterMessages(List<org.hl7.fhir.utilities.validation.ValidationMessage> messages)
-
messagesToOutcome
protected static org.hl7.fhir.r5.model.OperationOutcome messagesToOutcome(List<org.hl7.fhir.utilities.validation.ValidationMessage> messages, org.hl7.fhir.r5.context.SimpleWorkerContext context, org.hl7.fhir.r5.utils.FHIRPathEngine fpe) throws IOException, org.hl7.fhir.exceptions.FHIRException, org.hl7.fhir.r5.utils.EOperationOutcome
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionorg.hl7.fhir.r5.utils.EOperationOutcome
-
parseSources
public static boolean parseSources(List<String> sources, List<String> refs, org.hl7.fhir.r5.context.SimpleWorkerContext context) throws IOException
Iterates through the list of passed in sources, extracting all references and populated them in the passed in list.- Returns:
Boolean.TRUEif more than one reference is found.- Throws:
IOException
-
-