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 TypeClassDescriptionstatic class
static class
class
CanonicalResourceManager.MetadataResourceVersionComparator<T1 extends CanonicalResourceManager<T>.org.hl7.fhir.r5.context.CanonicalResourceManager.CachedCanonicalResource<T>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
copy
(CanonicalResourceManager<T> source) void
void
drop
(CanonicalResourceManager<T>.org.hl7.fhir.r5.context.CanonicalResourceManager.CachedCanonicalResource<T> cr) 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
see
(CanonicalResourceManager<T>.org.hl7.fhir.r5.context.CanonicalResourceManager.CachedCanonicalResource<T> cr) void
see
(T r, PackageInformation packgeInfo) void
setVersion
(String version) int
size()
-
Constructor Details
-
CanonicalResourceManager
-
-
Method Details
-
getVersion
-
setVersion
-
copy
-
register
public void register(CanonicalResourceManager.CanonicalResourceProxy r, PackageInformation packgeInfo) -
see
-
see
public void see(CanonicalResourceManager<T>.org.hl7.fhir.r5.context.CanonicalResourceManager.CachedCanonicalResource<T> cr) -
drop
public void drop(CanonicalResourceManager<T>.org.hl7.fhir.r5.context.CanonicalResourceManager.CachedCanonicalResource<T> cr) -
drop
-
has
-
has
-
get
-
get
-
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
-
getList
-
getSortedList
-
keys
-
isEnforceUniqueId
-