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
public class FHIRRegistryResource extends Object implements Comparable<FHIRRegistryResource>
A base class that contains the metadata for a definitional resource (e.g. StructureDefinition)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FHIRRegistryResource.Version
Represents 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)
FHIRRegistryResource(Class<? extends Resource> resourceType, String id, String url, FHIRRegistryResource.Version version, String kind, String type, boolean defaultVersion)
FHIRRegistryResource(Class<? extends Resource> resourceType, String id, String url, FHIRRegistryResource.Version version, String kind, String type, Resource resource)
FHIRRegistryResource(Class<? extends Resource> resourceType, String id, String url, FHIRRegistryResource.Version version, String kind, String type, Resource resource, boolean defaultVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends FHIRRegistryResource>
Tas(Class<T> registryResourceType)
int
compareTo(FHIRRegistryResource other)
boolean
equals(Object obj)
static FHIRRegistryResource
from(Resource resource)
static FHIRRegistryResource
from(Resource resource, boolean defaultVersion)
String
getId()
String
getKind()
Resource
getResource()
Class<? extends Resource>
getResourceType()
String
getType()
String
getUrl()
FHIRRegistryResource.Version
getVersion()
int
hashCode()
<T extends FHIRRegistryResource>
booleanis(Class<T> registryResourceType)
boolean
isDefaultVersion()
-
-
-
Constructor Detail
-
FHIRRegistryResource
public FHIRRegistryResource(Class<? extends Resource> resourceType, String id, String url, FHIRRegistryResource.Version version, String kind, String type, boolean defaultVersion)
-
FHIRRegistryResource
public FHIRRegistryResource(Class<? extends Resource> resourceType, String id, String url, FHIRRegistryResource.Version version, String kind, String type)
-
FHIRRegistryResource
public FHIRRegistryResource(Class<? extends Resource> resourceType, String id, String url, FHIRRegistryResource.Version version, String kind, String type, Resource resource, boolean defaultVersion)
-
-
Method Detail
-
getId
public String getId()
-
getUrl
public String getUrl()
-
getVersion
public FHIRRegistryResource.Version getVersion()
-
getKind
public String getKind()
-
getType
public String getType()
-
isDefaultVersion
public boolean isDefaultVersion()
-
getResource
public 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:
compareTo
in interfaceComparable<FHIRRegistryResource>
-
from
public static FHIRRegistryResource from(Resource resource)
-
from
public static FHIRRegistryResource from(Resource resource, boolean defaultVersion)
-
-