Package org.hl7.fhir.r5.utils.validation
Interface IValidatorResourceFetcher
-
public interface IValidatorResourceFetcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Elementfetch(IResourceValidator validator, Object appContext, String url)CanonicalResourcefetchCanonicalResource(IResourceValidator validator, 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(IResourceValidator validator, 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(IResourceValidator validator, String url)booleanresolveURL(IResourceValidator validator, Object appContext, String path, String url, String type)IValidatorResourceFetchersetLocale(Locale locale)
-
-
-
Method Detail
-
fetch
Element fetch(IResourceValidator validator, Object appContext, String url) throws org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRExceptionIOException
-
resolveURL
boolean resolveURL(IResourceValidator validator, Object appContext, String path, String url, String type) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
fetchRaw
byte[] fetchRaw(IResourceValidator validator, String url) throws IOException
- Throws:
IOException
-
setLocale
IValidatorResourceFetcher setLocale(Locale locale)
-
fetchCanonicalResource
CanonicalResource fetchCanonicalResource(IResourceValidator validator, 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.
- Returns:
- an R5 version of the resource
- Throws:
URISyntaxException
-
fetchesCanonicalResource
boolean fetchesCanonicalResource(IResourceValidator validator, 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:
-
-