Class ResourceTypeHint.Builder<T extends ProfileVersion>

java.lang.Object
de.gematik.bbriccs.fhir.codec.ResourceTypeHint.Builder<T>
Enclosing class:
ResourceTypeHint<T extends ProfileVersion,R extends org.hl7.fhir.r4.model.Resource>

public static class ResourceTypeHint.Builder<T extends ProfileVersion> extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • forVersion

      @SafeVarargs public final ResourceTypeHint.Builder<T> forVersion(T... versions)
      Register the given specific versions to the mapping
      Parameters:
      versions - to selectively use for the mapping
      Returns:
      the builder
    • forAllVersionsFrom

      public ResourceTypeHint.Builder<T> forAllVersionsFrom(Class<T> versionClass)
      Register the mapping for all versions of the given enum
      Parameters:
      versionClass - the enum class to use for all versions
      Returns:
      the builder
    • mappingTo

      public <R extends org.hl7.fhir.r4.model.Resource> ResourceTypeHint<T,R> mappingTo(Class<R> mappingClass)
      Generate the ResourceTypeHint for the given mapping class and the configured structure system with the given version
      Type Parameters:
      R - the resource type of the mapping class
      Parameters:
      mappingClass - which should be used to map the resource which map the configured structure system
      Returns:
      the resource type hint