
Package org.hl7.fhir.r5.context
Class CanonicalResourceManager<T extends CanonicalResource>
java.lang.Object
org.hl7.fhir.r5.context.CanonicalResourceManager<T>
This manages a cached list of resources, and provides high speed access by URL / URL+version, and assumes that patch version doesn't matter for access
note, though, that not all resources have semver versions
- Author:
- graha
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic classstatic classclassCanonicalResourceManager.MetadataResourceVersionComparator<T1 extends CanonicalResourceManager<T>.CachedCanonicalResource<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidcopy(CanonicalResourceManager<T> source) voidvoidgetByPackage(String system, String version, List<String> pvlist) getByPackage(String url, List<String> pvlist) This is asking for a packaged version aware resolution if we can resolve the reference in the package dependencies, we will. if we can't then we fall back to the non-package approach The context has to prepare the pvlist based on the original packagegetList()getPackageInfo(String system, String version) getSupplements(String url) getSupplements(String url, String version) getSupplements(String url, String version, List<String> pvlist) getSupplements(T cr) getVersionList(String url) booleanbooleanbooleankeys()voidvoidlistAllM(List<CanonicalResource> result) voidvoidvoidsee(T r, PackageInformation packgeInfo) voidsetVersion(String version) intsize()voidunload()
-
Constructor Details
-
CanonicalResourceManager
-
-
Method Details
-
getVersion
-
setVersion
-
copy
-
register
public void register(CanonicalResourceManager.CanonicalResourceProxy r, PackageInformation packgeInfo) -
see
-
see
-
drop
-
drop
-
has
-
has
-
get
-
get
-
getForUrl
-
getByPackage
This is asking for a packaged version aware resolution if we can resolve the reference in the package dependencies, we will. if we can't then we fall back to the non-package approach The context has to prepare the pvlist based on the original package- Parameters:
url-srcInfo-- Returns:
-
getByPackage
-
getPackageInfo
-
size
-
listAll
-
listAllM
-
getSupplements
-
getSupplements
-
getSupplements
-
getSupplements
-
clear
-
getCachedList
-
getList
-
getVersionList
-
getSortedList
-
keys
-
isEnforceUniqueId
-
unload
-