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
Modifier and TypeClassDescriptionclass
static class
static class
class
CanonicalResourceManager.MetadataResourceVersionComparator<T1 extends CanonicalResourceManager<T>.CachedCanonicalResource<T>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
copy
(CanonicalResourceManager<T> source) void
void
This is asking for a packaged version aware resolution if we can resolve the reference in the package dependencies, we will.getList()
getPackageInfo
(String system, String version) getSupplements
(String url) getSupplements
(String url, String version) getSupplements
(String url, String version, List<String> pvlist) getSupplements
(T cr) boolean
boolean
boolean
keys()
void
void
listAllM
(List<CanonicalResource> result) void
void
void
see
(T r, PackageInformation packgeInfo) void
setVersion
(String version) int
size()
void
unload()
-
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
-
get
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:
-
get
-
getPackageInfo
-
size
-
listAll
-
listAllM
-
getSupplements
-
getSupplements
-
getSupplements
-
getSupplements
-
clear
-
getCachedList
-
getList
-
getSortedList
-
keys
-
isEnforceUniqueId
-
unload
-