Package de.gematik.bbriccs.fhir.codec
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>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforAllVersionsFrom(Class<T> versionClass) Register the mapping for all versions of the given enumfinal ResourceTypeHint.Builder<T>forVersion(T... versions) Register the given specific versions to the mapping<R extends org.hl7.fhir.r4.model.Resource>
ResourceTypeHint<T,R> Generate the ResourceTypeHint for the given mapping class and the configured structure system with the given version
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
forVersion
Register the given specific versions to the mapping- Parameters:
versions- to selectively use for the mapping- Returns:
- the builder
-
forAllVersionsFrom
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
-