Class PackageRegistryResource
- java.lang.Object
-
- org.linuxforhealth.fhir.registry.resource.FHIRRegistryResource
-
- org.linuxforhealth.fhir.registry.util.PackageRegistryResource
-
- All Implemented Interfaces:
java.lang.Comparable<FHIRRegistryResource>
public class PackageRegistryResource extends FHIRRegistryResource
A FHIR registry resource that can load a FHIR resource given a path
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.linuxforhealth.fhir.registry.resource.FHIRRegistryResource
FHIRRegistryResource.Version
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
path
-
Fields inherited from class org.linuxforhealth.fhir.registry.resource.FHIRRegistryResource
defaultVersion, id, kind, resource, resourceType, type, url, version
-
-
Constructor Summary
Constructors Constructor Description PackageRegistryResource(java.lang.Class<? extends Resource> resourceType, java.lang.String id, java.lang.String url, FHIRRegistryResource.Version version, java.lang.String kind, java.lang.String type, java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPath()
Resource
getResource()
Get the FHIR resource associated with this registry resource-
Methods inherited from class org.linuxforhealth.fhir.registry.resource.FHIRRegistryResource
as, compareTo, equals, from, from, getId, getKind, getResourceType, getType, getUrl, getVersion, hashCode, is, isDefaultVersion
-
-
-
-
Constructor Detail
-
PackageRegistryResource
public PackageRegistryResource(java.lang.Class<? extends Resource> resourceType, java.lang.String id, java.lang.String url, FHIRRegistryResource.Version version, java.lang.String kind, java.lang.String type, java.lang.String path)
-
-
Method Detail
-
getPath
public java.lang.String getPath()
-
getResource
public Resource getResource()
Get the FHIR resource associated with this registry resource- Overrides:
getResource
in classFHIRRegistryResource
- Returns:
- the FHIR resource associated with this registry resource
-
-