Class FHIRRegistryResource

  • All Implemented Interfaces:
    java.lang.Comparable<FHIRRegistryResource>
    Direct Known Subclasses:
    PackageRegistryResource

    public class FHIRRegistryResource
    extends java.lang.Object
    implements java.lang.Comparable<FHIRRegistryResource>
    A base class that contains the metadata for a definitional resource (e.g. StructureDefinition)
    • Field Detail

      • resourceType

        protected final java.lang.Class<? extends Resource> resourceType
      • id

        protected final java.lang.String id
      • url

        protected final java.lang.String url
      • kind

        protected final java.lang.String kind
      • type

        protected final java.lang.String type
      • defaultVersion

        protected final boolean defaultVersion
      • resource

        protected volatile Resource resource
    • Constructor Detail

      • FHIRRegistryResource

        public FHIRRegistryResource​(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,
                                    boolean defaultVersion)
      • FHIRRegistryResource

        public FHIRRegistryResource​(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)
      • FHIRRegistryResource

        public FHIRRegistryResource​(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,
                                    Resource resource,
                                    boolean defaultVersion)
      • FHIRRegistryResource

        public FHIRRegistryResource​(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,
                                    Resource resource)
    • Method Detail

      • getResourceType

        public java.lang.Class<? extends Resource> getResourceType()
      • getId

        public java.lang.String getId()
      • getUrl

        public java.lang.String getUrl()
      • getKind

        public java.lang.String getKind()
      • getType

        public java.lang.String getType()
      • isDefaultVersion

        public boolean isDefaultVersion()
      • getResource

        public Resource getResource()
      • is

        public <T extends FHIRRegistryResource> boolean is​(java.lang.Class<T> registryResourceType)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object