Package com.ibm.fhir.registry.resource
Class FHIRRegistryResource
- java.lang.Object
 - 
- com.ibm.fhir.registry.resource.FHIRRegistryResource
 
 
- 
- All Implemented Interfaces:
 Comparable<FHIRRegistryResource>
- Direct Known Subclasses:
 PackageRegistryResource,ServerRegistryResource
public abstract class FHIRRegistryResource extends Object implements Comparable<FHIRRegistryResource>
An abstract base class that contains the metadata for a definitional resource (e.g. StructureDefinition) 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFHIRRegistryResource.VersionRepresents a version that can either be lexical or follow the Semantic Versioning format 
- 
Constructor Summary
Constructors Constructor Description FHIRRegistryResource(Class<? extends Resource> resourceType, String id, String url, FHIRRegistryResource.Version version, String kind, String type) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <T extends FHIRRegistryResource>
Tas(Class<T> registryResourceType)intcompareTo(FHIRRegistryResource other)booleanequals(Object obj)StringgetId()StringgetKind()abstract ResourcegetResource()Class<? extends Resource>getResourceType()StringgetType()StringgetUrl()FHIRRegistryResource.VersiongetVersion()inthashCode()<T extends FHIRRegistryResource>
booleanis(Class<T> registryResourceType) 
 - 
 
- 
- 
Method Detail
- 
getId
public String getId()
 
- 
getUrl
public String getUrl()
 
- 
getVersion
public FHIRRegistryResource.Version getVersion()
 
- 
getKind
public String getKind()
 
- 
getType
public String getType()
 
- 
getResource
public abstract Resource getResource()
 
- 
is
public <T extends FHIRRegistryResource> boolean is(Class<T> registryResourceType)
 
- 
as
public <T extends FHIRRegistryResource> T as(Class<T> registryResourceType)
 
- 
compareTo
public int compareTo(FHIRRegistryResource other)
- Specified by:
 compareToin interfaceComparable<FHIRRegistryResource>
 
 - 
 
 -