Package org.hl7.fhir.r4.context
Class CanonicalResourceManager<T extends MetadataResource>
- java.lang.Object
-
- org.hl7.fhir.r4.context.CanonicalResourceManager<T>
-
public class CanonicalResourceManager<T extends MetadataResource> extends Object
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 Classes Modifier and Type Class Description classCanonicalResourceManager.MetadataResourceVersionComparator<T extends MetadataResource>
-
Constructor Summary
Constructors Constructor Description CanonicalResourceManager(boolean enforceUniqueId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidcopy(CanonicalResourceManager<T> source)voiddrop(String id)Tget(String url)Tget(String system, String version)List<T>getList()booleanhas(String url)booleanhas(String system, String version)booleanisEnforceUniqueId()Set<String>keys()voidlistAll(List<T> result)voidlistAllM(List<MetadataResource> result)voidsee(T r)intsize()
-
-
-
Constructor Detail
-
CanonicalResourceManager
public CanonicalResourceManager(boolean enforceUniqueId)
-
-
Method Detail
-
copy
public void copy(CanonicalResourceManager<T> source)
-
size
public int size()
-
listAllM
public void listAllM(List<MetadataResource> result)
-
clear
public void clear()
-
isEnforceUniqueId
public boolean isEnforceUniqueId()
-
-