Package org.hl7.fhir.r4b.utils
Interface IResourceValidator.IValidatorResourceFetcher
-
- Enclosing interface:
- IResourceValidator
public static interface IResourceValidator.IValidatorResourceFetcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Elementfetch(Object appContext, String url)CanonicalResourcefetchCanonicalResource(String url)this is used when the validator encounters a reference to a structure definition, value set or code system at some random URL reference while validating.booleanfetchesCanonicalResource(String url)Whether to try calling fetchCanonicalResource for this reference (not whether it will succeed - just throw an exception from fetchCanonicalResource if it doesn't resolve.byte[]fetchRaw(String url)booleanresolveURL(Object appContext, String path, String url, String type)IResourceValidator.IValidatorResourceFetchersetLocale(Locale locale)IResourceValidator.ReferenceValidationPolicyvalidationPolicy(Object appContext, String path, String url)
-
-
-
Method Detail
-
fetch
Element fetch(Object appContext, String url) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionorg.hl7.fhir.exceptions.FHIRExceptionIOException
-
validationPolicy
IResourceValidator.ReferenceValidationPolicy validationPolicy(Object appContext, String path, String url)
-
resolveURL
boolean resolveURL(Object appContext, String path, String url, String type) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
fetchRaw
byte[] fetchRaw(String url) throws MalformedURLException, IOException
- Throws:
MalformedURLExceptionIOException
-
setLocale
IResourceValidator.IValidatorResourceFetcher setLocale(Locale locale)
-
fetchCanonicalResource
CanonicalResource fetchCanonicalResource(String url) throws URISyntaxException
this is used when the validator encounters a reference to a structure definition, value set or code system at some random URL reference while validating. Added in v5.2.2. return null to leave functionality as it was before then.- Parameters:
primitiveValue-- Returns:
- an R5 version of the resource
- Throws:
URISyntaxException
-
fetchesCanonicalResource
boolean fetchesCanonicalResource(String url)
Whether to try calling fetchCanonicalResource for this reference (not whether it will succeed - just throw an exception from fetchCanonicalResource if it doesn't resolve. This is a policy thing. Added in v5.2.2. return false to leave functionality as it was before then.- Parameters:
url-- Returns:
-
-